Parent Project
Project Documentation

Summary

Tag Name: tr:validateRegExp>
Type: org.apache.myfaces.trinidad.RegExp
Validate expression using java regular expression syntax.

Code Example(s)

<tr:inputText value="9999" label="RegExp validation">
  <tr:validateRegExp pattern="[9]*"/>
</tr:inputText>

Attributes

Name Type Supports EL? Description
disabled boolean Yes Default Value: false

Whether the converter should be disabled, default to false.
messageDetailNoMatch String Yes

Custom error message to be used, for creating detail part of faces message, when users input does not match the specified pattern.

Parameters:

  • {0} the label that identifies the component
  • {1} value entered by the user
  • {2} represents the 'pattern' expected in the input
pattern String Yes pattern to be matched in the input value.