Hi,

Why converter method getAsString is not called in selectBooleanCheckBox component ?

In my page with this tag

<af:selectBooleanCheckbox label="test boolean"
                       value="#{test.boolean}"
                       converter="#{test.booleanConverter}"/>

I have a String representation of boolean in my bean (getBoolean return "0" if false end "1" if true) My converter convert in getAsString "0" into "false" and "1" into "true" and vice versa (getAsObject).

Checkbox is never checked when getBoolean return "1", so I have debugged my application and I can see than getASString is never called.
getAsObject is called normally when my form is submitted.

How can I configure selectBooleanCheckBox to call converter getAsString ?

thanks for help
Arnaud

Reply via email to