|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.jsf.FacesSupport
public class FacesSupport
Provides common lifecycle phase methods needed by interceptors and results.
Field Summary | |
---|---|
protected static java.lang.String |
FACES_ENABLED
Marker key for the ActionContext to dictate whether to treat the request as a JSF faces request and therefore process the Faces phases |
protected org.apache.commons.logging.Log |
log
Log instance for each class |
Constructor Summary | |
---|---|
protected |
FacesSupport()
Initializes log instance for the instance object |
Method Summary | |
---|---|
protected void |
informPhaseListenersAfter(javax.faces.context.FacesContext facesContext,
javax.faces.event.PhaseId phaseId)
Informs phase listeners after a phase is executed |
protected void |
informPhaseListenersBefore(javax.faces.context.FacesContext facesContext,
javax.faces.event.PhaseId phaseId)
Informs phase listeners before a phase is executed |
protected boolean |
isResponseComplete(javax.faces.context.FacesContext facesContext,
java.lang.String phase,
boolean before)
Checks to see if the response has been completed. |
protected void |
setLifecycle(javax.faces.lifecycle.Lifecycle lifecycle)
Sets the lifecycle for this request |
protected boolean |
shouldRenderResponse(javax.faces.context.FacesContext facesContext,
java.lang.String phase,
boolean before)
Checks to see the render phase should be executed next. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
protected static final java.lang.String FACES_ENABLED
Constructor Detail |
---|
protected FacesSupport()
Method Detail |
---|
protected void setLifecycle(javax.faces.lifecycle.Lifecycle lifecycle)
lifecycle
- The lifecycleprotected void informPhaseListenersBefore(javax.faces.context.FacesContext facesContext, javax.faces.event.PhaseId phaseId)
facesContext
- The current faces contextphaseId
- The phase id about to be executedprotected void informPhaseListenersAfter(javax.faces.context.FacesContext facesContext, javax.faces.event.PhaseId phaseId)
facesContext
- The current faces contextphaseId
- The phase id that was executedprotected boolean isResponseComplete(javax.faces.context.FacesContext facesContext, java.lang.String phase, boolean before)
facesContext
- The current faces contextphase
- The phase id in executionbefore
- Whether the phase has been executed or not
protected boolean shouldRenderResponse(javax.faces.context.FacesContext facesContext, java.lang.String phase, boolean before)
facesContext
- The current faces contextphase
- The phase id in executionbefore
- Whether the phase has been executed or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |