How to use date as paginator?

UI Components for JSF
Post Reply
udaykiran.nalla
Posts: 9
Joined: 06 Aug 2013, 14:28

23 Jul 2014, 16:19

Hi,

I want to show the dates as a paginator. Is there any way to do this for datatable or datagrid?

I wanted to create one week as one page like:- |<< < Jul 24- Aug 01 > >>|.

On click of next button it should change week.




Regards
uday.nalla
PrimeFaces 4.0 | Jboss AS 7.1.1 | Mojarra 2.1.18
Windows XP | Firefox 25.0

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

23 Jul 2014, 16:46

You should consider using Dates as filter criterion and not as Paginator options for the simple reason that a range of Dates may produce more than 1 page of data.
Or you can do way with the paginator altogether and simply display all data on the page depending on the Date range set.
You could probably do something interesting with Schedule for this too.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests