Thanks for improving the Primefaces...
I'm trying to combine two powerfull features of Primefaces 2.2 : dynamic columns and column grouping. My task is to create a two level header: in the first level header, the columns have a colspans of three and the second level header is just a normal one. The difficulty is thst the header must be dynamic.
I tried this:
Code: Select all
<p:dataTable var="swimlane" value="#{scheduleController.swimlanes}">
<p:columnGroup type="header">
<p:row>
<ui:repeat var="dayHeader" value="#{scheduleController.columns}">
<p:column colspan="3" headerText="#{dayHeader.offset}" />
</ui:repeat>
</p:row>
<p:row>
<ui:repeat var="shiftHeader" value="#{scheduleController.shifts}">
<p:column headerText="#{shiftHeader.shift}" />
</ui:repeat>
</p:row>
</p:columnGroup>
<...>
Any ideas?
Kind regards,
Simon
P.S. Just bought the manual but didn't find the answer there...