Home » JSF f:validateLength

JSF f:validateLength

by Online Tutorials Library

JSF <f:validateLength> Tag

It is used to check whether the length of a component’s value is within a certain range or not. The value must be a java.lang.String.

Tag Attributes

Attribute Description
minimum It is used to set minimum length for the component.
maximum It is used to set maximum length for the component.

// index.xhtml

// User.java


Output:

JSF F validatelength tag 1

JSF F validatelength tag 2


You may also like