Foundation
Project Documentation

Summary

Tag name: <tr:validateRegExp>

type: org.apache.myfaces.trinidad.RegExp
Validate expression using java regular expression syntax.

Example(s):

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

Attributes

Name Type Supports EL? Description
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.