5 Replies Latest reply on Apr 2, 2008 2:46 AM by borlander

    Is it possible to set a Set object to value of dataTable?

    mailcl

      I use Seam2.0.1GA . My code is very simple like this:

      <rich:dataTable var="ro" value="#{selectedGroup.roles}"
       rendered="#{not empty selectedGroup.roles}">
       <h:column>
       <f:facet name="header">Description</f:facet>
       #{ro.roleDesc}
       </h:column>
       <h:column>
       <f:facet name="header">Name</f:facet>
       #{ro.roleName}
       </h:column>
       <h:column>
       <f:facet name="header">actionœ</f:facet>
       <a4j:commandButton action="#{assignRoleToGroup.dropRole(ro)}"
       value="Delete" reRender="rlForm">
       </a4j:commandButton>
       </h:column>
       </rich:dataTable>
      


      selectedGroup.roles is a Set object, It dosnt work, tells ro is a Set, after I change selectedGroup.roles to be a List Object, it's ok.
      Is it possible to set a Set object to value of dataTable?