org.apache.myfaces.orchestra.viewController.jsf
Class ViewControllerPhaseListener

java.lang.Object
  extended by org.apache.myfaces.orchestra.viewController.jsf.ViewControllerPhaseListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

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

Causes lifecycle methods to be invoked on backing beans that are associated with the current view.

See the javadoc for class ViewControllerManager on how to configure this.

See Also:
Serialized Form

Constructor Summary
ViewControllerPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
protected  void assertConversationState(javax.faces.context.FacesContext facesContext)
          invoked multiple times during the lifecycle to ensure the conversation(s) to the associated viewController are running.
 void beforePhase(javax.faces.event.PhaseEvent event)
           
 javax.faces.event.PhaseId getPhaseId()
           
protected  java.lang.String getViewId(javax.faces.context.FacesContext facesContext)
           
protected  void postRestoreView(javax.faces.context.FacesContext facesContext)
          invokes the initView method on your view controller
protected  void preInvokeApplication(javax.faces.context.FacesContext facesContext)
          invokes the preProcess method on your view controller
protected  void preRenderResponse(javax.faces.context.FacesContext facesContext)
          invokes the preRenderView method on your view controller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewControllerPhaseListener

public ViewControllerPhaseListener()
Method Detail

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener

getViewId

protected java.lang.String getViewId(javax.faces.context.FacesContext facesContext)

assertConversationState

protected void assertConversationState(javax.faces.context.FacesContext facesContext)
invoked multiple times during the lifecycle to ensure the conversation(s) to the associated viewController are running.

Parameters:
facesContext -

preRenderResponse

protected void preRenderResponse(javax.faces.context.FacesContext facesContext)
invokes the preRenderView method on your view controller


postRestoreView

protected void postRestoreView(javax.faces.context.FacesContext facesContext)
invokes the initView method on your view controller


preInvokeApplication

protected void preInvokeApplication(javax.faces.context.FacesContext facesContext)
invokes the preProcess method on your view controller



Copyright 2007 The Apache Software Foundation. All Rights Reserved.