I have selectMenu, with a list (SelectItems) defined in a handler, as follows
Handler { List(SelectItem) stateList; State state; } State { String stateCd; }
JSF Code ::
<h:selectOneMenu value="#{state.stateCode}"> <f:selectItems value="#{handler.stateList}"> </h:selectOneMenu>
Now my list is in the Scope request, and I see that the value represented is a string and is present in the list, but I still get "Validation error: value is invalid". Help someone help.
ccp_123
source share