Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PrimeFaces 3.2 DataTable "jump to page" paginator template?

According to the official PrimeFaces 3.2 documentation, the paginator template can be a combination of the following predefined paginator templates:

  • {FirstPageLink}
  • {LastPageLink}
  • {PreviousPageLink}
  • {NextPageLink}
  • {PageLinks}
  • {CurrentPageReport}
  • {RowsPerPageDropDown}

This is fine for small data sets, but it's extremely hard to navigate thru the pages if the data set is huge: imagine you have a few thousands (or even more) of pages, you're at the very first start, page No. 1, and you want to jump directly to page No. 813, and then -- to No. 499). So:

  1. Is there a way to enhance the existing templates set for the paginator in PrimeFaces 3.2 DataTable, e.g. adding a custom template?
  2. If not, ... is there a way (I assume it as a potential hack) affect the data table navigation like in the scenario I described above?

Your help would be really appreciated. Thanks in advance.

like image 443
Lyubomyr Shaydariv Avatar asked Sep 20 '12 11:09

Lyubomyr Shaydariv


1 Answers

There is a paginator option {JumpToPageDropdown} you can use to select the page from the dropdown. I don't think it is documented.

like image 145
velo Avatar answered Sep 19 '22 08:09

velo