Are you absolutely sure how af:selectBooleanCheckbox in ADF works? I’m not.
Every time when I need to use a value from af:selectBooleanCheckbox I need to recall in which situation what value will be returned.
Here you can find a short example of different returned values depending the binding Items getting values calls. If we add some different values for the checkbox in page definition file, we can be absolutely sure that the behavior is not predictable for a regular developer.
For the experiment I will try to print the different values for one select boolean checkbox in different ways – ValueChangeEvent, EL Expression, Binding and Model values:
As you can see all conventional ways to get the value from the Bean are limited to the Boolean value of the component. The only way I know to get the logical value of the component is to get it from the View Object.
Be careful using af:selectBooleanCheckbox and be happy if you can skip it.
The next hidden treasure is about the default value of the check boxes. So,