public static class ValidatorTag.BindingValidator
extends java.lang.Object
implements javax.faces.validator.Validator, javax.faces.component.StateHolder
Modifier and Type | Field and Description |
---|---|
private javax.el.ValueExpression |
binding |
private java.lang.Object[] |
state |
private javax.el.ValueExpression |
validatorId |
Constructor and Description |
---|
BindingValidator()
Only used during state restoration
|
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 . |
private javax.el.ValueExpression binding
private javax.el.ValueExpression validatorId
private java.lang.Object[] state
public BindingValidator()
Only used during state restoration
public 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.StateHolder
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
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.
validate
in interface javax.faces.validator.Validator
context
- 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 null
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.