com.sun.faces.taglib.jsf_core
Class ValidatorTag.BindingValidator
java.lang.Object
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
Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
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 |
ValidatorTag.BindingValidator
public ValidatorTag.BindingValidator()
Only used during state restoration
ValidatorTag.BindingValidator
public ValidatorTag.BindingValidator(javax.el.ValueExpression validatorId,
javax.el.ValueExpression binding)
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 processingcomponent
- UIComponent we are checking for correctnessvalue
- 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.