org.ploin.web.faces.phaselistener
Class JsfPhaseListener01

java.lang.Object
  extended by org.ploin.web.faces.phaselistener.JsfPhaseListener01
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class JsfPhaseListener01
extends Object
implements javax.faces.event.PhaseListener

PhaseListener for Phase 1.

$LastChangedBy: r.reiz $
$Revision: 122 $
$Date: 2010-04-22 12:28:16 +0200 (Thu, 22 Apr 2010) $

See Also:
Serialized Form

Constructor Summary
JsfPhaseListener01()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
          Before phase1 the framework look for "ploinFlows" in the application scope.
 Long generateID()
           
 javax.faces.context.FacesContext getF()
           
 javax.faces.event.PhaseId getPhaseId()
           
 void setF(javax.faces.context.FacesContext f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsfPhaseListener01

public JsfPhaseListener01()
Method Detail

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
Before phase1 the framework look for "ploinFlows" in the application scope. If there is no "ploinFlows" in the application scope, the framework reade the flows from the file "ploinFlows.xml" and store it in the application scope.

After the flows are stored in the application scope, the framework try to get the fromViewId! If it is not possible to get the viewId, because it is a redirect or the first request to the application, the fromViewId keeps empty "", in this phase. In phase 2 the framework try again to get the viewId.

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

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

generateID

public Long generateID()

getF

public javax.faces.context.FacesContext getF()

setF

public void setF(javax.faces.context.FacesContext f)


Copyright © 2012 PLOIN GmbH. All Rights Reserved.