org.apache.myfaces.extensions.validator.crossval
Class CrossValidationPhaseListener

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.crossval.CrossValidationPhaseListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

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

This phase listener processes cross validation as soon as it finds a special request scoped storage.
So it's possible to add information during the process validation phase. At the end of this phase it gets processed. After that the storage gets reseted.

If you provide a custom extension and you add the same storage type within a different phase, it also gets processed at the end of that phase.

Since:
1.x.1
Author:
Gerhard Petracek
See Also:
Serialized Form

Constructor Summary
CrossValidationPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossValidationPhaseListener

public CrossValidationPhaseListener()
Method Detail

afterPhase

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

beforePhase

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

getPhaseId

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


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.