The
presence of this annotation on a
class automatically registers the class with the runtime as a Validator. The value of the value attribute is taken to be
the validator-id and the fully qualified class name of the
class to which this annotation is attached is taken to be the
validator-class. The implementation must guarantee that for
each class annotated with FacesValidator, found with the
algorithm in section JSF.11.5,
javax.faces.application.Application#addValidator(java.lang.String, java.lang.String)
is called, passing the derived validator-id as the first
argument and the derived validator-class as the second
argument. The implementation must guarantee that all such calls to
addValidator() happen during application startup time
and before any requests are serviced.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether or not this is a default validatorIf |
| public boolean | Returns: true if CDI managed, false otherwise.The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. |
| public String | Returns: the validator-idThe value of this annotation
attribute is taken to be the validator-id with which
instances of this class of component can be instantiated by
calling |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() If
| |
| managed | back to summary |
|---|---|
| public boolean managed() The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter.
| |
| value | back to summary |
|---|---|
| public String value() The value of this annotation
attribute is taken to be the validator-id with which
instances of this class of component can be instantiated by
calling
| |