jsf - How can I create a table with a variable amount of rows in each column using primefaces? -
i working jsf 2.2 , primefaces 6.0; create complex table , need know how create table, example, each row of first column, many rows in second column.
it excel
representation:
i haven't test it, found example:
http://www.primefaces.org/showcase/ui/data/datatable/group.xhtml
<p:datatable var="sale" value="#{dtgroupview.sales}"> <f:facet name="header"> sales/profits of manufacturers </f:facet> <p:columngroup type="header"> <p:row> <p:column colspan="1" headertext="items" /> <p:column colspan="1" headertext="another" /> </p:row> <p:row> <p:column rowspan="4" headertext="manufacturer" /> </p:row> </p:columngroup> <p:column> <h:outputtext value="#{sale.item1}" /> </p:column> <p:column> <h:outputtext value="#{sale.rowsof4}%" /> </p:column> </p:datatable>
many helps you?
Comments
Post a Comment