Trying to get h:selectManyCheckbox running since about 1 days, but I
always get a validation error when I select one of the checkboxes
Validation error : Value is not a valid option
Using in the
JSP:
<h:selectManyCheckbox layout="pageDirection" value="#{candidateViewEditBean.selectedSkillSets}" id="skillSet">
<f:selectItems value="#{candidateViewEditBean.skillSetList}"/>
</h:selectManyCheckbox>
The backing bean has two ArrayLists:
List<
String> selectedSkillSets = new ArrayList<String>();
and
List<SelectItem> skillSetList = new ArrayList<SelectItem>();
As I know browser always submit value is string format and my selected List is also of string hence it should not create validation error.
When I am doing hit and trail to fixed this problem I found that if I put backing bean in session scope then it work fine. But I cant put bean in session scope due to some other issues.
Please help me !
Your suggestion will be highly appreciated.
Thanks Pavan Kumar