Home » JSF f:validateRegex

JSF f:validateRegex

by Online Tutorials Library

JSF <f:validateRegex> Tag

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.

Tag Attributes

Attribute Description
pattern It is used to set a regular expression pattern for the component. It is a required attribute.

JSF <f:validateRegex> Tag Example

// index.xhtml

// User.java


Output:

JSF F valiregex tag 1

You may also like