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?
Asked
Active
Viewed 3.3k times
33
2 Answers
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;
}

Diego de la Riva
- 106
- 5