3 Replies Latest reply on Mar 1, 2010 4:08 AM by nbelaevski

    bind values from DB with rich:picklist

      I'm trying to retreive data from database and bind it to rich:picklist.

       

      it keeps giving this error "Cannot convert [[Ljavax.faces.model.SelectItem;@26776] of type class java.util.ArrayList to class javax.faces.model.SelectItem"

       

      i tried returning selectItem[], arraylist of selectItem. the same error appears.

       

      Here's my code

       

         <rich:pickList value="#{AddressBookServlet.supIncluded}" >
      <f:selectItem value="#{AddressBookServlet.supPickList}" />
      </rich:pickList>

       

       

      What am i doing wrong? What is needed to be return for supPickList?

       

      Thanks in advance..