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 11.4 "Annotations that correspond to and may take the place of entries in the Application Configuration Resources" of the Jakarta Faces Specification Document,
jakarta.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 | Class and Description |
|---|---|
| public static class | FacesValidator.Literal
Supports inline instantiation of the |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether or not this is a default validator
If |
| 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-id
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
|
| 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
| |
Supports inline instantiation of the FacesValidator qualifier.
| Modifier and Type | Field and Description |
|---|---|
| public static final FacesValidator. | INSTANCE
Instance of the |
| private final boolean | |
| private final boolean | |
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isDefault()
Implements jakarta.
If |
| public boolean | managed()
Implements jakarta. 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 static FacesValidator. | |
| public String | value()
Implements jakarta.
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
|
| INSTANCE | back to summary |
|---|---|
| public static final FacesValidator. Instance of the | |
| isDefault | back to summary |
|---|---|
| private final boolean isDefault | |
| managed | back to summary |
|---|---|
| private final boolean managed | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| value | back to summary |
|---|---|
| private final String value | |
| Literal | back to summary |
|---|---|
| private Literal(String value, boolean isDefault, boolean managed) | |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() Implements jakarta. Doc from jakarta.
If
| |
| managed | back to summary |
|---|---|
| public boolean managed() Implements jakarta. Doc from jakarta. 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.
| |
| of | back to summary |
|---|---|
| public static FacesValidator. | |
| value | back to summary |
|---|---|
| public String value() Implements jakarta. Doc from jakarta.
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
| |