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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA