1 Reply Latest reply on Apr 24, 2008 5:55 AM by Ze Manel

    Dynamic columnGrouping

    Ze Manel Newbie

      Hi,
      It's possible using richfaces to create a dataTable with dynamic columnGrouping?
      I.E. when i click in a column header it expands/collapses, grouping/disgrouping columns, changing colspans/rowspans/breakBefore

      Part of my xhtml table:

      ...
      <f:facet name="header">
       <rich:columnGroup>
       <rich:column rowspan="3">#{a.b} </rich:column>
       <rich:column colspan="12">#{b.c}</rich:column>
       <rich:column colspan="3" breakBefore="true">#{c.d[0]}
       </rich:column>
       <rich:column colspan="3">#{c.d[1]}</rich:column>
       <rich:column colspan="3">#{c.d[2]}</rich:column>
       <rich:column colspan="3">#{c.d[3]}</rich:column>
       <rich:column breakBefore="true">#{e.f[0]}</rich:column>
       <rich:column>#{e.f[1]}</rich:column>
       ...
       </rich:columnGroup>
      </f:facet>
      ...



      Basically what i need is a reRender of the table associated with action listeners, but for this this column headerrows need to be specified at java beans.

      I know this is possible with normal columns, without any grouping, at least in ICEFaces, but with columnGrouping i have no idea how to set the header structure throw action listeners

      Any help/ideas are welcome :)


      Regards