MethodBindingValidator is an ValidatorListener that wraps a MethodBinding. When it
receives a ActionEvent, it executes a method on an
object identified by the MethodBinding.
| Modifier and Type | Field and Description |
|---|---|
| private MethodBinding | methodBinding
Deprecated
as a consequence of
MethodBinding being deprecated.
|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MethodBindingValidator(MethodBinding methodBinding)
Deprecated
as a consequence of
MethodBinding being deprecated.
Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public MethodBinding | |
| public boolean | isTransient()
Implements javax. If true, the Object implementing this interface must not participate in state saving or restoring. |
| private static Class | |
| 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 newTransientValue)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 |
| methodBinding | back to summary |
|---|---|
| private MethodBinding methodBinding
Deprecated as a consequence of | |
| tranzient | back to summary |
|---|---|
| private boolean tranzient | |
| MethodBindingValidator | back to summary |
|---|---|
| public MethodBindingValidator() | |
| MethodBindingValidator | back to summary |
|---|---|
| public MethodBindingValidator(MethodBinding methodBinding)
Deprecated as a consequence of Construct a | |
| getWrapped | back to summary |
|---|---|
| public MethodBinding getWrapped()
Deprecated as a consequence of | |
| 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.
| |
| loadClass | back to summary |
|---|---|
| private static Class | |
| 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 newTransientValue) 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
| |