com.esri.adf.web.faces.event
Class ADFPhaseListener

java.lang.Object
  extended bycom.esri.adf.web.faces.event.ADFPhaseListener
All Implemented Interfaces:
java.util.EventListener, javax.faces.event.PhaseListener, java.io.Serializable

public class ADFPhaseListener
extends java.lang.Object
implements javax.faces.event.PhaseListener

This listener calls into the lifecycle methods (activate and passivate) of all the WebContexts on the page.

See Also:
Serialized Form

Field Summary
static java.lang.String CONTEXTS_ACTIVATED_ATTRIBUTE
          This listener sets a request attribute under this name after it has activated all the contexts to indicate that the contexts have been activated for the current request cycle.
 
Constructor Summary
ADFPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
          Passivates all the WebContexts on the page after the render response phase.
 void beforePhase(javax.faces.event.PhaseEvent event)
          Activates all the WebContexts on the page before either the apply request values phase or the render response phase.
 javax.faces.event.PhaseId getPhaseId()
          Returns PhaseId.ANY_PHASE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXTS_ACTIVATED_ATTRIBUTE

public static final java.lang.String CONTEXTS_ACTIVATED_ATTRIBUTE
This listener sets a request attribute under this name after it has activated all the contexts to indicate that the contexts have been activated for the current request cycle.

See Also:
Constant Field Values
Constructor Detail

ADFPhaseListener

public ADFPhaseListener()
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)
Passivates all the WebContexts on the page after the render response phase.

Specified by:
afterPhase in interface javax.faces.event.PhaseListener
Parameters:
event - PhaseEvent the Phase event

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
Activates all the WebContexts on the page before either the apply request values phase or the render response phase.

Specified by:
beforePhase in interface javax.faces.event.PhaseListener
Parameters:
event - PhaseEvent the Phase event

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Returns PhaseId.ANY_PHASE

Specified by:
getPhaseId in interface javax.faces.event.PhaseListener
Returns:
PhaseId PhaseId.ANY_PHASE