MethodExpressionValidator
is a Validator that wraps a MethodExpression, and it
performs validation by executing a method on an object identified by
the MethodExpression.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private MethodExpression | |
| private boolean | |
| private static final String | |
| private Boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MethodExpressionValidator(MethodExpression
the expression to wrap methodExpression)Construct a |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public boolean | isTransient()
Implements javax. If true, the Object implementing this interface must not participate in state saving or restoring. |
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Implements javax. Perform any processing required to restore the state from the entries in the state Object. |
| public Object | saveState(FacesContext
the Faces context. context)Implements javax. Gets the state of the instance as a
|
| public void | setTransient(boolean
boolean pass transientValue)true if this
Object will not
participate in state saving or restoring, otherwise pass
false.Implements javax. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. |
| public void | validate(FacesContext
FacesContext for the request we are processing context, UIComponent UIComponent we are checking for correctness component, Object the value to validate value)Implements javax. Perform the
correctness checks implemented by this |
| private boolean |
| BEANS_VALIDATION_AVAILABLE | back to summary |
|---|---|
| private static final String BEANS_VALIDATION_AVAILABLE | |
| methodExpression | back to summary |
|---|---|
| private MethodExpression methodExpression | |
| transientValue | back to summary |
|---|---|
| private boolean transientValue | |
| VALIDATE_EMPTY_FIELDS_PARAM_NAME | back to summary |
|---|---|
| private static final String VALIDATE_EMPTY_FIELDS_PARAM_NAME | |
| validateEmptyFields | back to summary |
|---|---|
| private Boolean validateEmptyFields | |
| MethodExpressionValidator | back to summary |
|---|---|
| public MethodExpressionValidator() | |
| MethodExpressionValidator | back to summary |
|---|---|
| public MethodExpressionValidator(MethodExpression methodExpression) Construct a
| |
| isBeansValidationAvailable | back to summary |
|---|---|
| private boolean isBeansValidationAvailable(FacesContext context) | |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements javax. Doc from javax. If true, the Object implementing this interface must not participate in state saving or restoring.
| |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Implements javax. Doc from javax. Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to
instances that also implement StateHolder (such as a
If the
| |
| saveState | back to summary |
|---|---|
| public Object saveState(FacesContext context) Implements javax. Doc from javax. Gets the state of the instance as a
If the class that implements this interface has references to
instances that implement StateHolder (such as a
This method must not alter the state of the implementing object. In other words, after executing this code:
The return from this method must be
| |
| setTransient | back to summary |
|---|---|
| public void setTransient(boolean transientValue) Implements javax. Doc from javax. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.
| |
| validate | back to summary |
|---|---|
| public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException Implements javax. Doc from javax. Perform the
correctness checks implemented by this For a validator to be fully compliant with Version 2 and later
of the specification, it must not fail validation on
| |
| validateEmptyFields | back to summary |
|---|---|
| private boolean validateEmptyFields(FacesContext ctx) | |