how to use selectManyListbox

UI Components for JSF
Post Reply
rym
Posts: 23
Joined: 22 Jun 2011, 16:46

19 Jul 2011, 13:13

hello,
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>
Bean:

Code: Select all

   private  ArrayList<String>  selecteditems; // + getter + setter
   private List<SelectItem> myListitems; 

           public  List<SelectItem> getMyListitems(){
  //fill the selectManyListbox
  }

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 56 guests