4 Replies Latest reply on Feb 13, 2007 6:39 PM by fhh

    <si:selectItems /> and selectMany



      I'm trying to use <si:selectItems /> together with <h:selectMany /> and it seems to be buggy.

      public Class Department {
       private List<Employee> employees;
      public Class Employee {
       private Integer id;
       private String name;

      Now I want to do something like this:

      <h:selectManyCheckbox value="#{department.employees}">
       <si:selectItems value="#{employee}" var="employee" label="#{employee.name}" cache="true" />

      This does not work on the first try. I get a validation error - "Selected item cannot be loaded from persistence context." If I try again it works and the ArrayList is updated correctly. Is this a bug or I am doing something wrongly?



      P.S.: All the "employees" have been persisted before and do have a valid id.