• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validation errors when using h:selectManyCheckbox

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Pavan Shahi
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
:shocked: :shocked:
No one !
 
reply
    Bookmark Topic Watch Topic
  • New Topic