selectManyCheckbox « validation « JSF Q&A





1. Validation Error: Value is not valid for SelectManyCheckBox    stackoverflow.com

I am new to JSF, I am getting the following error for <h:selectManyCheckBox>:

Validation Error: Value is not valid
This is my model:
private List<String> selectedRoles;
public List<SelectItem> availableRolesSelectItem;

for (Role role : rolesList) ...