javax.faces.validator
Class RequiredValidator
java.lang.Object
javax.faces.validator.RequiredValidator
- All Implemented Interfaces:
- EventListener, Validator
@JSFValidator(name="f:validateRequired",
bodyContent="empty")
@JSFJspProperty(name="binding",
returnType="javax.faces.validator.RequiredValidator",
longDesc="A ValueExpression that evaluates to a RequiredValidator.")
public class RequiredValidator
- extends Object
- implements Validator
Check if a value is empty, in the same way as set UIInput required
property to true (including all rules related to this property).
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATOR_ID
public static final String VALIDATOR_ID
- See Also:
- Constant Field Values
RequiredValidator
public RequiredValidator()
validate
public void validate(FacesContext facesContext,
UIComponent uiComponent,
Object value)
throws ValidatorException
- Specified by:
validate
in interface Validator
- Throws:
ValidatorException
Copyright © 2014 The Apache Software Foundation. All rights reserved.