This is my .xhtml file
<tr:selectOneChoice >
<f:selectItems value="#{bean.items}"/>
</tr:selectOneChoice>
I want to be able to identify between the different options in the client side. In my backing bean I have boolean for each Choice.
Is it possible to actually identify between this options in the client side ?
The bean code goes like this :
public List<SelectItem> getItems(Menu menu) {
List<SelectItem> list = new ArrayList();
SelectItem selectItem = new SelectItem(new MyObj("some string",false), "label");
list.add(selectItem);
return list;
}
MyObj class contains the flag that I want to be able to see in the client side.
any one know how to do that ?
thanks ,
John.