public static class ValidatorTag.BindingValidator
extends java.lang.Object
implements javax.faces.validator.Validator, javax.faces.component.StateHolder
| Constructor and Description |
|---|
ValidatorTag.BindingValidator()
Only used during state restoration
|
ValidatorTag.BindingValidator(javax.el.ValueExpression validatorId,
javax.el.ValueExpression binding) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public ValidatorTag.BindingValidator()
Only used during state restoration
public ValidatorTag.BindingValidator(javax.el.ValueExpression validatorId,
javax.el.ValueExpression binding)
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean newTransientValue)
setTransient in interface javax.faces.component.StateHolderpublic 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.
validate in interface javax.faces.validator.Validatorcontext - FacesContext for the request we are processingcomponent - UIComponent we are checking for correctnessvalue - the value to validatejavax.faces.validator.ValidatorException - if validation failsjava.lang.NullPointerException - if context
or component is nullCopyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.