Validate EL expression sub tag
The <hx:validateConstraint> tag validates a value using a regular expression.
Parent tags
This tag is used as a child of the following tags:
- <h:inputText>
Rendering
This component has no visual rendering. No HTML is rendered.
Properties and All Attributes views
The Properties view for a component shows the most common set of attributes you can set on a component, and, depending on the component, you might also see options for adding controls, actions, or other components. To open the Properties view, click
Window | Show View | Properties.
These common attributes for the Validate constraint sub tag:
The All Attributes view shows a table of all the attributes you can set on a component, which includes those attributes you can access from the Properties view. To switch to the All Attributes view, click the
All Attributes icon in the upper right corner of the Properties view.
Table 1. Validate constraint attributes Attribute name
Description
regex
Limits the type of characters that can be entered into the component (for example, Digits Only or ASCII Alphabet Only). Adds hx:validateConstraint with the regex attribute to the All Attributes view.