StockViewer

The StockViewer example is a simple and yet powerful web application that shows features that are quite difficult to implement in a traditional HTML/CSS based system implemented in Wisej using familiar and intuitive structures.

Overview

The StockViewer application simulates a central service (StockManager) that collects information about a list of stocks at regular intervals by connecting (also simulated) to an external data provider (MarketService). When the values are retrieved it broadcasts an event. If an error occurs it also broadcasts an event.

Multiple listeners, corresponding to multiple clients or sessions, can subscribe to the events fired by the StockManager and update the view accordingly. Updates are immediate and unattended, pushed by the server, without requiring a browser refresh or timer.

Users can enable or disable receiving updates for a specific stock symbol.

The StockManager service may randomly throw an exception to simulate an error when connecting to the third party service. Depending on when the exception is simulated, the StockViewer may ask the user whether he wishes to continue receiving the update or just terminate.

Points of Interest

Simple and yet really difficult to implement using HTML/CSS systems, especially because of these features:

  • Unattended push updates

  • Broadcast server-side events

  • Modal user interaction while loading

  • Dynamic interactive view

  • Localization using the designer and ResX Manager

  • Animations on multiple controls.

Last updated