public class DelegateValidator extends Object implements Validator, StateHolder
<f:validator binding="#{mybean}"/>
or
<f:validator validatorId="#{'anyid'}" binding="#{mybean}"/>
The value of mybean could be already on the context, so this
converter avoid creating a new variable and use the previous one.NOT_IN_RANGE_MESSAGE_ID
Constructor and Description |
---|
DelegateValidator() |
DelegateValidator(javax.el.ValueExpression id,
javax.el.ValueExpression binding,
String converterIdString) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTransient() |
void |
restoreState(FacesContext facesContext,
Object state) |
Object |
saveState(FacesContext facesContext) |
void |
setTransient(boolean arg0) |
void |
validate(FacesContext facesContext,
UIComponent component,
Object value) |
public DelegateValidator()
public DelegateValidator(javax.el.ValueExpression id, javax.el.ValueExpression binding, String converterIdString)
public boolean isTransient()
isTransient
in interface StateHolder
public void restoreState(FacesContext facesContext, Object state)
restoreState
in interface StateHolder
public Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
public void setTransient(boolean arg0)
setTransient
in interface StateHolder
public void validate(FacesContext facesContext, UIComponent component, Object value) throws ValidatorException
validate
in interface Validator
ValidatorException
Copyright © 2020 The Apache Software Foundation. All rights reserved.