1 Reply Latest reply on Jul 8, 2008 2:15 AM by nimo stephan


    nimo stephan Master

      I have a selectManyCheckbox embeeded in an rich:dataGrid:

      <rich:dataGrid value="#{groupsList}" var="groups" columns="4" elements="4">
      <f:facet name="header">
      <!--select implicitly the group by selecting the roles within the group -->
      <h:outputText value="#{groups.description}"/>
      <!-- convertEntity-Tag not compatible to outputText -->
      <h:selectManyCheckbox value="#{myRolesInGroup(groups, roles)}">
      <s:selectItems value="#{rolesList}" var="roles" label="#{roles.description}"/>
      <f:facet name="footer">

      The groupsList and the rolesList are obtained via the Factory-Methods:

      public List <Roles> getRolesList() {
      return entityManager.createQuery("from Roles r").getResultList();

      The 'myRolesInGroup(group, roles)' is a Map:

      private Map<Group, Roles> myRolesInMailroom
      //with getter/setter

      But this works not as I cannot declare a convertEntity-Tag to my h:outputText-Tag.

      How can I associate the choosen roles to the group in a simply way?