DateTable pageReportTemplate support

UI Components for JSF
Post Reply
CannyDuck
Posts: 36
Joined: 27 Apr 2010, 17:26

27 May 2010, 15:49

It would be great if the paging report of a DataTable can be customized with the existing paginator attribute "pageReportTemplate".

Should I create a patch file that includes that feature and create a ticket?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 May 2010, 16:14

Hi,

Can you explain more please? We have the paginatorTemplate option in datatable.

CannyDuck
Posts: 36
Joined: 27 Apr 2010, 17:26

27 May 2010, 16:19

I want to generate a localized/customized page report.
Now the DataTable always use the default pageReportTemplate : "{currentPage} of {totalPages} " -> "1 of 10".
I want to do something like this "Page 1 of 10" or "Seite 1 von 10".

Also see: http://developer.yahoo.com/yui/docs/YAH ... eport.html

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 May 2010, 16:59

Ok, now I got it, please create a ticket for this and link to this post. Patch is welcome as well. :)

CannyDuck
Posts: 36
Joined: 27 Apr 2010, 17:26

01 Jun 2010, 18:14

I created a ticket http://code.google.com/p/primefaces/iss ... ail?id=870 with a attached patch file to be applied to the current svn trunk.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Jun 2010, 21:15

Ok, I've added currentPageReportTemplate attribute to datatable, datagrid and datalist as they all have built-in paginators, thanks for your feedback.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests