public class CdiValidator extends Object implements Validator, StateHolder
NOT_IN_RANGE_MESSAGE_ID
Constructor and Description |
---|
CdiValidator()
Constructor.
|
CdiValidator(String validatorId,
Validator delegate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTransient()
Is the validator transient.
|
void |
restoreState(FacesContext facesContext,
Object state)
Restore the state.
|
Object |
saveState(FacesContext facesContext)
Save the state.
|
void |
setTransient(boolean transientValue)
Set the validator to transient.
|
void |
validate(FacesContext facesContext,
UIComponent component,
Object value)
Validate.
|
public Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
facesContext
- the Faces context.public void restoreState(FacesContext facesContext, Object state)
restoreState
in interface StateHolder
facesContext
- the Faces context.state
- the state.public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean transientValue)
We ignore the call as our proxy is always non-transient.
setTransient
in interface StateHolder
transientValue
- the transient value.public void validate(FacesContext facesContext, UIComponent component, Object value) throws ValidatorException
validate
in interface Validator
facesContext
- the Faces context.component
- the UI component.value
- the value.ValidatorException
- when a validation error occurs.Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.