Hi
when i try to select multilist box and click on submit ,displaying an error sourceId=assignRoleForm:list2[severity=(ERROR 2), summary=(assignRoleForm:list2: Validation Error: Value is not valid), detail=(assignRoleForm:list2: Validation Error: Value is not valid)]
my .xhtml code as follows
<td>
<h:selectManyListbox style="width: 210px;" id="list2" size="10"
value ="#{userRoleMappingManager.selAssgnedRoleList}">
<f:selectItems value="#{userRoleMappingManager.assignedRoleList}" />
</h:selectManyListbox>
</td>
</tr>
<tr>
<td> <a4j:commandButton
styleClass="cmdButton ui-button ui-widget ui-state-default ui-corner-all"
id="assignRoleMngerBtn2" value="Assign"
action="#{userRoleMappingManager.assignUserToRole}"
onclick="showBusyMask('Searching Role ...');"
oncomplete="jQuery('#tabs-2 :button').button();hideBusyMask();"
reRender="resultMsg,assignRoleForm ">
</a4j:commandButton>
</td>
</tr>
And my
java class
public class UserRoleMappingManager {
private static final Logger LOG = Logger.getLogger(UserRoleMappingManager.class);
private RoleMappingDao roleMappingDao;
private List<SelectItem> availableRoleList = new ArrayList<SelectItem>();
private List<SelectItem> assignedRoleList = new ArrayList<SelectItem> (); // with setters and getters
private List<
String> selectedRoleList ;
private List<String> selAssgnedRoleList;
i passing and retreving the string as key for mulilist box but still i face the error,Can any provide help