-
Select faces-config.xml in the Project Explorer of the J2EE perspective.
The JSF Application Configuration editor opens.
-
Select the Component tab of the
editor.
-
Expand the Validators section.
A list of defined validators displays.
-
Click Add.
A new validator is added to the Converters list with the default
name New Validator
x
.
-
(Optional) Change the default validator name to a unique,
descriptive name in the Display name field
of the General section.
-
(Optional) Type a description in the Description
field.
-
Type an ID in the Validator ID
field.
-
Click Browse and select a Validator Class.
-
Click Add in the Attributes section to add an attribute value.
-
Click Add in the Properties section to add a property.