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
disabledbooleanYes Default Value: false

Whether the converter should be disabled, default to false.
messageDetailNoMatchStringYes

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
patternStringYes pattern to be matched in the input value.