Saturday, April 25, 2009

View states

In many rich Internet applications, the interface changes based on the task the user is performing. A simple example is an image that changes when the user rolls the mouse over it or changing from a browse view to a detail view. View states let you easily implement such applications.

A view state defines a particular view of a component.

To create a view state, you define a base state, and then define a set of changes, or overrides, that modify the base state to define the new view state. Each additional view state can modify the base state by adding or removing child components, by setting style and property values, or by defining state-specific event handlers.

A view state does not have to modify the base

No comments:

Post a Comment