1 Reply Latest reply on Mar 23, 2010 9:35 AM by nimo stephan

    seams converter Expected a child component type of UISelectItem

    nimo stephan Master

      I am using selectManyCheckbox with s:convertEntity:



      <h:selectManyCheckbox id="selectManyUsers" value="#{myBean.users['selected']}">
              <s:selectItems value="#{myBean.users['all']}" var="_u" label="#{_u.name}"/>
              <s:convertEntity/>
      </h:selectManyCheckbox>




      when rendering the page, I get that failure:



      09:11:29,040 WARN  [ExceptionFilter] exception root cause
      java.lang.IllegalArgumentException: Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectMany(selectManyUsers).  Found null.
              at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils.java:357)
              at com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:103)



      Indeed, the


      myBean.users['selected']



      is a list of entities and not a list of SelectItems, but why should I use SelectItems when I want to convert it to entites??