Unable to read checkbox value in OAF
I have programmatically created few check
boxes in an OAF page. I am unable to determine programmatically whether
the box is checked by user or not (upon submission). I want to capture
the values for checkboxes that were selected by user. Initially, all the
check boxes are unselected.
Here is what I have done so far and unable to read the checked value:
1. Create check box
OAMessageCheckBoxBean
cbi=(OAMessageCheckBoxBean)createWebBean(pageContext,OAWebBeanConstants.MESSAGE_CHECKBOX_BEAN
,null,"CBNAME"+i);
2. I tried with and without setting the value for this checkbox bean using
a. "setValue"
b. "setSelectedValue"
3. Upon user submission, I try to read the value of the check boxes as follows: