133
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:
Next TopicJSF <f:validateRequired>