Hi
I have a problem with my <rich:pickList> I can't display the items. When executing the application I got the following error:
java.lang.IllegalArgumentException: ValueBinding for UISelectMany : must be of type List or Array at org.richfaces.utils.PickListUtils.findUISelectManyConverter(PickListUtils.java:59) at org.richfaces.utils.PickListUtils.findUISelectManyConverterFailsafe(PickListUtils.java:79)
@Stateful
@Name("adminAction")
@Scope(ScopeType.SESSION)
public class AdminActionBean implements AdminActionLocal {
@In(required=false)
private List<String> customersChoice;
@Out(required=false)
private List<String> companyNames;
@Factory("companyNames")
public void selectCompanyNames(){
setCompanyNames((List<String>) getEm().createQuery("select c.companyName from Customer c")
.getResultList());
//getter() and settter......<rich:pickList id="customersChoice" value="#{customersChoice}">
<f:selectItems id="companyNames" value="#{companyNames}" />
</rich:pickList>companyNames should be list of selectItem objects not Strings. But not user friendly exception will be fixed.
http://jira.jboss.com/jira/browse/RF-3681