I used this jQuery picklist
$(function()
{
$("#selectUsers").pickList();
});
and in jsf page
<h:selectManyMenu id="selectUsers">
<f:selectItems value="#{someBean.selectItems}" />
</h:selectManyMenu>
in Java
private List<SelectItem> selectItems;
How can I get users that I selected in picklist in Java class?
Add
value=#{someBean.myValue}inh:selectManyMenuand definemyValueas ListList<String> myValueCode will be as below.
JSF
Java
Edit 1
I noticed that you want list as Dual list. For that I would suggest you to use Primefaces picklist. You will not need to write much code. See second option, its just awesome.