4 Replies Latest reply on Dec 5, 2006 10:02 AM by Pete Muir

    <si:selectItems ...>

    Toni Beckman Novice


      I read the wiki on how to use the <si:selectItems> several times, looked at the examples, but I still run into the following excepiton:

      javax.faces.FacesException: value must be iteratable

      But I'm returning a List, which is iteratable. I'm using JBoss 4.04GA, with Seam 1.0.1 GA and 1.1.1beta2 of selectItems.

      Does somebody see anything wrong with code here:

      The function to build the List:

      public List buildClients()
      List client = entityManager.createQuery("from Client").getResultList();
      return client;

      The JSP snippet, which causes the exception

      <h:selectOneMenu value="#{clientsActionBean.client}" required="false">
      <si:selectItems value="#{clients}" var="c" label="#{c.name}" noSelectionLabel="Please Select..."/>