Registering a Custom Converter Using a Value Binding Expression

To register a custom converter on a component using value binding:

  1. In the Visual Editor, select the component on which you wish to register a standard or custom converter.
  2. In the Property Inspector, select the converter property, then click bind to data icon .
  3. Enter a value binding expression in the column next to the converter property and press Enter.

    Or,

    Click the column next to the converter property, then click ellipsis button to use the Expression Builder to select an expression.

  4. (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

<h:inputText id="age" converter="#{someBean.someProperty}" />     

About Custom JSF Converters
About the converter Attribute
Registering a Custom Converter on a Component
Registering a Standard Converter on a Component Using a Standard Tag
Registering a Standard Converter That Does Not Have a Supplied Tag