Paging appear in JSF Primafeces Datatable only when you have more than one page

Asked

Viewed 88 times

0

How to make pagination appear only when you have more than one page, using the Datatable of Primefaces in the JSF?

  • You are using pure JSF or some framework (Primefaces, Richfaces, Icefaces...)?

  • I edited the question and added the first faces there

  • Which version are you using?

1 answer

1


Following the documentation of Primefaces 6.1, you can use the attribute paginatorAlwaysVisible to hide if the table does not display the number of records required for paging:

Here is a translation of the documentation:

Estate: paginatorAlwaysVisible

Default value: true

Defines whether the pagination component must be hidden if the total records is less than the amount of records per page

Therefore in his datatable use the attribute paginatorAlwaysVisible="false"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.