public class ActionLifecycle
extends javax.faces.lifecycle.Lifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_LIFECYCLE |
| Constructor and Description |
|---|
ActionLifecycle() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPhaseListener(javax.faces.event.PhaseListener listener)
Register a new
PhaseListener instance that is interested in
being notified before and after the processing for standard phases of
the request processing lifecycle. |
void |
execute(javax.faces.context.FacesContext context)
Execute all of the phases of the request processing lifecycle,
up to but not including the Render Response phase,
as described in the JavaServer Faces Specification, in the specified
order.
|
javax.faces.event.PhaseListener[] |
getPhaseListeners()
Return the set of registered
PhaseListeners for this
Lifecycle instance. |
void |
removePhaseListener(javax.faces.event.PhaseListener listener)
Deregister an existing
PhaseListener instance that is no
longer interested in being notified before and after the processing
for standard phases of the request processing lifecycle. |
void |
render(javax.faces.context.FacesContext context)
Execute the Render Response phase of the request
processing lifecycle, unless the
responseComplete()
method has been called on the FacesContext instance
associated with the current request. |
public static final String ACTION_LIFECYCLE
public void addPhaseListener(javax.faces.event.PhaseListener listener)
javax.faces.lifecycle.LifecycleRegister a new PhaseListener instance that is interested in
being notified before and after the processing for standard phases of
the request processing lifecycle.
addPhaseListener in class javax.faces.lifecycle.Lifecyclelistener - The PhaseListener to be registeredpublic void execute(javax.faces.context.FacesContext context)
throws javax.faces.FacesException
javax.faces.lifecycle.LifecycleExecute all of the phases of the request processing lifecycle,
up to but not including the Render Response phase,
as described in the JavaServer Faces Specification, in the specified
order. The processing flow can be affected (by the application,
by components, or by event listeners) by calls to the
renderResponse() or responseComplete()
methods of the FacesContext instance associated with
the current request.
execute in class javax.faces.lifecycle.Lifecyclecontext - FacesContext for the request to be processedjavax.faces.FacesException - if thrown during the execution of the
request processing lifecyclepublic javax.faces.event.PhaseListener[] getPhaseListeners()
javax.faces.lifecycle.LifecycleReturn the set of registered PhaseListeners for this
Lifecycle instance. If there are no registered listeners,
a zero-length array is returned.
getPhaseListeners in class javax.faces.lifecycle.LifecyclePhaseListenerspublic void removePhaseListener(javax.faces.event.PhaseListener listener)
javax.faces.lifecycle.LifecycleDeregister an existing PhaseListener instance that is no
longer interested in being notified before and after the processing
for standard phases of the request processing lifecycle. If no such
listener instance has been registered, no action is taken.
removePhaseListener in class javax.faces.lifecycle.Lifecyclelistener - The PhaseListener to be deregisteredpublic void render(javax.faces.context.FacesContext context)
throws javax.faces.FacesException
javax.faces.lifecycle.LifecycleExecute the Render Response phase of the request
processing lifecycle, unless the responseComplete()
method has been called on the FacesContext instance
associated with the current request.
render in class javax.faces.lifecycle.Lifecyclecontext - FacesContext for the request being processedjavax.faces.FacesException - if an exception is thrown during the execution
of the request processing lifecycleCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.