Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA