I want to use h:selectManyListbox but I don't know how manipulate it (How to recuperate the selecteditems)
Code: Select all
<h:selectManyListbox value="#{myBean.selecteditems}" id="project" size="3">
<f:selectItems value="#{TestAjax.getMyListitems()}" />
</h:selectManyListbox>
Code: Select all
private ArrayList<String> selecteditems; // + getter + setter
private List<SelectItem> myListitems;
public List<SelectItem> getMyListitems(){
//fill the selectManyListbox
}