A Validator that checks for an empty value in the same way that UIInput checks for a value. In fact, this validator is equivalent to setting the required attribute on the input component to true.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | VALIDATOR_ID
The standard converter id for this converter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. Verify that the converted object value is not null. |
| VALIDATOR_ID | back to summary |
|---|---|
| public static final String VALIDATOR_ID The standard converter id for this converter. | |
| RequiredValidator | back to summary |
|---|---|
| public RequiredValidator() | |
| validate | back to summary |
|---|---|
| public void validate(FacesContext context, UIComponent component, Object value) Implements javax. Verify that the converted object value is not null.
| |