33

I'm using <p:dataTable> of PrimeFaces 3.3.1 with pagination. The pagination buttons appear in both the table header and footer. I would like to hide the pagination buttons in the table header and keep the ones in the table footer. How can I achieve this?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
PhĂșc
  • 421
  • 1
  • 5
  • 11

2 Answers2

74

According to the PrimeFaces Users Guide and the <p:dataTable> VDL Documentation, there's a paginatorPosition attribute which can take a value of both (default), top or bottom.

So just set paginatorPosition attribute to bottom.

<p:dataTable ... paginatorPosition="bottom">
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
0

Alternative for hidding all datatable paginators on headers:

.ui-paginator-top{
    display:none;
}