org.javalid.external.jsf
Class JvJsfUpdateValuesPhaseListener

java.lang.Object
  extended by org.javalid.external.jsf.JvJsfUpdateValuesPhaseListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

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

This class allows xml-driven validation for jsf pages. Please see jv-jsf-config.xml for more information. Define this class in your faces-config if you need this type of validation.

Changes for 1.0.1:

Since:
1.0
Version:
1.0.1
Author:
M.Reuvers
See Also:
Serialized Form

Constructor Summary
JvJsfUpdateValuesPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
          Handles the actual validation.
 void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
           
protected  void doValidate(javax.faces.event.PhaseEvent phaseEvent)
          Executes the actual validation.
 javax.faces.event.PhaseId getPhaseId()
           
protected  void loadValidator(javax.faces.context.FacesContext context)
          Loads the annotationvalidator using given servlet context.
protected  void validationErrorsFound(javax.faces.event.PhaseEvent phaseEvent)
          Simply calls renderResponse() on the facescontext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvJsfUpdateValuesPhaseListener

public JvJsfUpdateValuesPhaseListener()
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Handles the actual validation.

Specified by:
afterPhase in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
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

validationErrorsFound

protected void validationErrorsFound(javax.faces.event.PhaseEvent phaseEvent)
Simply calls renderResponse() on the facescontext.

Parameters:
phaseEvent - Event

loadValidator

protected void loadValidator(javax.faces.context.FacesContext context)
Loads the annotationvalidator using given servlet context.

Parameters:
context - The servlet context to use

doValidate

protected void doValidate(javax.faces.event.PhaseEvent phaseEvent)
Executes the actual validation.

Parameters:
phaseEvent -