com.sun.faces.taglib.jsf_core
Class ValidatorTag.BindingValidator

java.lang.Object
  extended by com.sun.faces.taglib.jsf_core.ValidatorTag.BindingValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
Enclosing class:
ValidatorTag

public static class ValidatorTag.BindingValidator
extends java.lang.Object
implements javax.faces.validator.Validator, javax.faces.component.StateHolder


Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
ValidatorTag.BindingValidator()
          Only used during state restoration
ValidatorTag.BindingValidator(javax.el.ValueExpression validatorId, javax.el.ValueExpression binding)
           
 
Method Summary
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
          Perform the correctness checks implemented by this Validator against the specified UIComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorTag.BindingValidator

public ValidatorTag.BindingValidator()

Only used during state restoration


ValidatorTag.BindingValidator

public ValidatorTag.BindingValidator(javax.el.ValueExpression validatorId,
                                     javax.el.ValueExpression binding)
Method Detail

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface javax.faces.component.StateHolder

validate

public void validate(javax.faces.context.FacesContext context,
                     javax.faces.component.UIComponent component,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException

Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the FacesMessage describing the failure.

Specified by:
validate in interface javax.faces.validator.Validator
Parameters:
context - FacesContext for the request we are processing
component - UIComponent we are checking for correctness
value - the value to validate
Throws:
javax.faces.validator.ValidatorException - if validation fails
java.lang.NullPointerException - if context or component is null


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.