Java Reference
In-Depth Information
If the current request is identified as a partial request, the partial context is retrieved from
the
Faces Context
, and the partial processing method is applied.
Update Model Values Phase
After the JavaServer Faces implementation determines that the data is valid, it traverses
the component tree and sets the corresponding server-side object properties to the com-
ponents' local values. The JavaServer Faces implementation updates only the bean prop-
erties pointed at by an input component's value attribute. If the local data cannot be con-
verted to the types specified by the bean properties, the lifecycle advances directly to the
Render Response phase so that the page is re-rendered with errors displayed. This is sim-
ilar to what happens with validation errors.
If any
updateModels
methods or any listeners have called the
renderResponse
method on the current
FacesContext
instance, the JavaServer Faces implementation
skips to the Render Response phase.
At this point, if the application needs to redirect to a different web application resource or
generate a response that does not contain any JavaServer Faces components, it can call the
FacesContext.responseComplete
method.
If any events have been queued during this phase, the JavaServer Faces implementation
broadcasts them to interested listeners.
If the current request is identified as a partial request, the partial context is retrieved from
the
FacesContext
, and the partial processing method is applied.
Invoke Application Phase
During this phase, the JavaServer Faces implementation handles any application-level
events, such as submitting a form or linking to another page.
At this point, if the application needs to redirect to a different web application resource or
generate a response that does not contain any JavaServer Faces components, it can call the
FacesContext.responseComplete
method.
If the view being processed was reconstructed from state information from a previous re-
quest and if a component has fired an event, these events are broadcast to interested listen-
ers.
Finally, the JavaServer Faces implementation transfers control to the Render Response
phase.