Eu estou tentando recuperar uma lista de valores do Hibernate e exibi-las em uma página JSF usando o selectManyListbox. Mas está aparecendo um erro:
java.lang.IllegalArgumentException: ValueBinding for UISelectMany : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/projeto.jsp][Class: javax.faces.component.html.HtmlForm,Id: registerProjetoForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp0][Class: javax.faces.component.html.HtmlSelectManyListbox,Id: Colaboradores]} must be of type List or Array
Código .java:
public List<SelectItem> getAllColaboradores() {
ArrayList allColaboradores = new ArrayList();
EntityManager em = Contexts.getEntityManager();
Query query = em.createQuery("FROM net.roseindia.dao.hibernate.Colaborador");
List<Colaborador> c = query.getResultList();
if (c.isEmpty()==true) {
System.out.println("vazio");
}
else {
Iterator iter = c.iterator();
while (iter.hasNext()) {
SelectItem item = new SelectItem();
Colaborador curColaborador= (Colaborador) iter.next();
allColaboradores.add(new SelectItem(new String(curColaborador.getNomeColaborador()), curColaborador.getNomeColaborador()));
}
}
return allColaboradores;
}
.JSP:
<h:selectManyListbox id="Colaboradores"
value="#{BeanColaborador.nomeColaborador}">
<f:selectItems value="#{BeanColaborador.allColaboradores}" />
</h:selectManyListbox>
Alguém sabe o que pode estar acontecendo? 
Valeu!