UIViewRoot is the UIComponent that represents the root of the UIComponent tree. This component renders markup as the response to Ajax requests. It also serves as the root of the component tree, and as a place to hang per-view {@link PhaseListener}s.
For each of the following lifecycle phase methods:
{@link #processDecodes}
{@link #processValidators}
{@link #processUpdates}
{@link #processApplication}
RenderResponse, via {@link #encodeBegin} and {@link #encodeEnd}
Take the following action regarding PhaseListener
s.
Initialize a state flag to false
.
If {@link #getBeforePhaseListener} returns non-null
,invoke the listener, passing in the correct corresponding {@link PhaseId} for this phase.
Upon return from the listener, call {@link FacesContext#getResponseComplete} and {@link FacesContext#getRenderResponse}. If either return true
set the internal state flag to true
.
If or one or more listeners have been added by a call to {@link #addPhaseListener}, invoke the beforePhase
method on each one whose {@link PhaseListener#getPhaseId} matches the currentphaseId, passing in the same PhaseId
as in the previous step.
Upon return from each listener, call {@link FacesContext#getResponseComplete} and {@link FacesContext#getRenderResponse}. If either return true
set the internal state flag to true
.
Execute any processing for this phase if the internal state flag was not set.
If {@link #getAfterPhaseListener} returns non-null
,invoke the listener, passing in the correct corresponding {@link PhaseId} for this phase.
If or one or more listeners have been added by a call to {@link #addPhaseListener}, invoke the afterPhase
method on each one whose {@link PhaseListener#getPhaseId} matches the currentphaseId, passing in the same PhaseId
as in the previous step.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|