Registering a Custom Converter on a Component

To register a custom converter on a component:

  1. In the Visual Editor, select the component on which you wish to register a custom converter.
  2. In the Property Inspector, click the column next to the converter property, then enter the custom converter's ID or fully qualified class name for a specific data type (as registered in the application) and press Enter.

    Or,

    In the Component Palette, select the JSF Core page, then click Converter. A dialog appears for you to enter the custom converter's ID (as registered in the application). Click OK when done.

  3. (Optional) In the Component Palette, click Attribute in the JSF Core page.

    A dialog appears for you to enter the name and value of the component attribute to set. Click Help if you need information about using the dialog.

Code sample 1

<h:inputText id="memberNumber" converter="customConverter"/> 
    

Code sample 2

<h:inputText id="memberNumber" ... >
  <f:converter converterId="customConverter"/>
</h:inputText>     

About Custom JSF Converters
Registering a Custom Converter or Validator in an Application
Registering a Custom Converter Using a Value Binding Expression
Registering a Standard Converter on a Component Using a Standard Tag