Home » JSF Validation

JSF Validation

by Online Tutorials Library

JSF Validation

JavaServer Faces technology provides a set of standard classes and associated tags that you can use to validate elements data.

Validator class Tag Function
BeanValidator validateBean It is used to registers a bean validator for the component.
DoubleRangeValidator validateDoubleRange It is used to check whether the local value of a component is within a certain range or not. The value must be floating-point or convertible to floating-point.
LengthValidator validateLength It is used to check whether the length of a component’s local value is within a certain range or not. The value must be a java.lang.String.
LongRangeValidator validateLongRange It is used to check whether the local value of a component is within a certain range or not. The value must be any numeric type or String that can be converted to a long.
RegexValidator validateRegex It is used to check whether the local value of a component is a match against a regular expression from the java.util.regex package or not.
RequiredValidator validateRequired It is used to ensure that the local value is not empty on an EditableValueHolder component.

You may also like