How to group headers of PrimeFaces dataTable with dynamic columns -
i using modified dynamic columns primefaces showcase: dynamic columns. task add column header grouping here primefaces showcase: group. trying start incrementaly, small code doesn't work (no header shown):
<p:datatable id="resulttable" var="result" value="#{mybean.searchresults}"> <p:columngroup type="header"> <p:row> <ui:repeat value="#{mybean.columns}" var="column" > <p:column headertext="#{column.header}" /> </ui:repeat> </p:row> </p:columngroup> <p:columns value="#{mybean.columns}" var="column" columnindexvar="colindex"> <h:outputtext value="#{result[column.property]}"/> </p:columns> </p:datatable>
primefaces version 3.4.1
grouping dynamic columns @ least supported in newer pf version. columns under same group. there must additional code. check showcase link point to
(ps, remove answer later on, since interpreted question wrong
Comments
Post a Comment