1 Reply Latest reply on Jul 8, 2008 11:25 PM by Dan Allen


    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">

      My business-bean:

      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?

        • 1. Re: SEAM+RichFaces+s:convertEntity
          Dan Allen Master

          Um, you cannot bind to a function: #{myRolesInGroup(groups, roles)}. This makes no sense. You need to have a collection property to which the selections are bound. You can use those selections to lookup other information in the action method. So you are looking for something like #{componentName.selectedRoles}.