Registering a Custom Converter or Validator in an Application

To register a custom converter or validator in the JSF application configuration file:

  1. Open the application's faces-config.xml file.
  2. In the Overview tab of the configuration editor, click Converters or Validators, then click New.

    The Create Converter or Create Validator dialog appears for you to enter an identifier and a fully qualified class name for the custom converter or validator. For a custom converter, you can register it under an identifier or a fully qualified class name for a specific data type.

  3. Enter the required information. For more information, click Help in the dialog. When done, click OK.
  4. (Optional) To add attributes or properties, click New next to the Attributes or Properties panel. If you don't see the New button, expand the panel by clicking Arrowhead pointing right .

    The Create Attribute or Create Property dialog appears for you to specify generic attributes or JavaBeans properties that may configured on the custom converter or validator.

  5. Enter the appropriate information. For more information, click Help in the dialog. When done, click OK.

About Custom JSF Converters
About Custom JSF Validators
Editing a Custom Converter or Validator Configuration in an Application
Deleting a Custom Converter or Validator Configuration from an Application