Hide pagination buttons in table header of p:dataTable

Phúc picture Phúc · Aug 4, 2012 · Viewed 30.7k times · Source

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?

Answer

BalusC picture BalusC · Aug 4, 2012

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">