Update Model Values
When this phase is reached, all submitted values have been validated
and converted to the appropriate local value data type. The
processUpdates()
method is called on the
UIViewRoot
component, causing the same method to
be called recursively on all components in the component tree with
the rendered
property set to
true
, which in turn calls the
updateModel()
method on the component if its an
input component. Calling the updateModel()
method
sets the property of the application object the component is bound
to, if any, to the component’s local value. If the
property can’t be set, an error message is queued
and the FacesContext
renderResponse(
)
method is called.
At the end of this phase, the broadcast()
method
of the source components for all events marked to be processed in any
phase or in the Update Model Values phase is called to notify the
event handlers. The event handlers may call the
FacesContext
renderResponse()
method, possibly after selecting a new view. If so, the processing
continues in the Render Response phase. Alternatively, an event
handler may render a response itself and call the
FacesContext
responseComplete(
)
method, in which case the request processing is
terminated.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.