Pavan Shahi schrieb:
Trying to get h:selectManyChekbox running sine 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
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.
Hi,
I guess I have bad news for you. Your code is working for me - in
request and session scope (it looked ok anyway).
One issue that might lead to this behaviour is that the list of possible
select items changes between the requests. This could explain why it is
working in session scope but not in request scope. How does your getter
for the list of select items look like?
The validation error you get indicates that the list of selected items
contains an element that is not in the list of select items.
regards
Michael