Reference Guide

Table Of Contents
SKI Framework - View Life-Cycle
All views are event driven and can react to the following life-cycle events:
Createcalled a single time when the view needs to be created (that is, navigation item is
clicked for the first time). At this time, a view will return its created DOM structure (that is, an
empty table).
Preloadcalled only once, after the view is in the DOM. At this time, a view can perform
any initialization that can only be done after the DOM structure has been realized.
Resetmay be called multiple times, allows the view to clear any stale data
Loadmay be called multiple times, allows the view to load its data. This is where a view
can make any Ajax calls needed to obtain server-side data.
Resizemay be called multiple times, allows the view to handle resize events caused by the
browser or main layout
Errormay be used to define an application specific error handler for the view
Unloadcalled to allow a view to perform any cleanup as it is about to be replaced by
another view
SKI Framework - Live Reference Application
The SKI reference application hp-util-ski-ui-X.XX.X.war is distributed with the SDK in the lib/util/
directory. You need to install the Apache Tomcat web server to run the reference application.
Simply copy this war file into your Tomcat webapps directory as the file ski-ui.war. You can
launch the reference application in your browser with URL: localhost:8080/ski-ui/ref/index.html.
Figure 30 shows the SKI UI reference application.
64