Menu

ViewLifecycle

Jan Volf

View Life-cycle

Each time user interacts with the view it goes thru the following stages:

  1. Initialization stage - create view from PXML document
  2. Restore state stage - restore state from post-back on view's update
  3. Execute stage - move to next state
  4. Save State - capture new state and serialize it to be rendered
  5. Render stage - render the view

It is the life-cycle of the view. It can be invoked in two different ways:

created
View is created when user navigates it's user agent to the link that renders a view.
updated
View is updated when user interacts with already rendered view.

See the diagram: View Lifecycle Diagram


Related

Wiki: Expressions
Wiki: Home
Wiki: View

MongoDB Logo MongoDB