Class RequiredValidator
java.lang.Object
jakarta.faces.validator.RequiredValidator
- All Implemented Interfaces:
Validator<Object>, EventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe standard converter id for this converter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(FacesContext context, UIComponent component, Object value) Verify that the converted object value is not null.
-
Field Details
-
VALIDATOR_ID
-
-
Constructor Details
-
RequiredValidator
public RequiredValidator()
-
-
Method Details
-
validate
Verify that the converted object value is not null.
- Specified by:
validatein interfaceValidator<Object>- Parameters:
context- FacesContext for the request we are processingcomponent- UIComponent we are checking for correctnessvalue- the value to validate- Throws:
ValidatorException- if validation fails
-