Process Validations
The processValidators() 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 and that were not validated during the Apply
Request Values phase, which in turn calls the validate(
) method on the component if its an input component.
Calling the validate() method causes a
ValueChangeEvent to be queued if the validated
value differs from the previous value and the local value to be set
to the converted, validated submitted value. If the submitted value
is invalid, 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 Process Validations 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access