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:

enter image description here

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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -