Jump to content

Print header on each page


nmsranito

Recommended Posts

hello I'm using primefaces as framework. I built a table with the following structure: <f:facet name="header"> The main Title </f:facet> <p:columnGroup type="header"> <p:row> <p:column colspan="1" rowspan="2" headerText="Data" /> <p:column colspan="1" rowspan="2" headerText="Porto" /> <p:column colspan="3" rowspan="1" headerText="Espécie" /> <p:column colspan="1" rowspan="2" headerText="(Kg)" /> <p:column colspan="1" rowspan="2" headerText="€" /> <p:column colspan="1" rowspan="2" headerText="Total(€)" /> <p:column colspan="2" rowspan="1" headerText="Comprador" /> </p:row> <p:row> <p:column colspan="1" headerText="Nome"/> <p:column colspan="1" headerText="Tamanho"/> <p:column colspan="1" headerText="Frescura"/> <p:column colspan="1" headerText="Nome"/> <p:column colspan="1" headerText="NIF"/> </p:row> </p:columnGroup> My point is to print the table, which spans over more than one page, with the header on top of which page. I used the following code: table { -fs-table-paginate: paginate; page-break-inside: always; border-color: red !important;} thead {display: table-header-group;} but still only prints on the first page... Can anyone help?

Link to comment
Share on other sites

We cannot use like this.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...