Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide pagination buttons in table header of p:dataTable

Tags:

jsf

primefaces

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?

like image 970
Phúc Avatar asked Aug 04 '12 03:08

Phúc


1 Answers

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"> 
like image 134
BalusC Avatar answered Sep 27 '22 17:09

BalusC