PF 3.0 RC1: using template text in paginatorTemplate

UI Components for JSF
Post Reply
BalusC
Posts: 36
Joined: 23 Jul 2010, 20:21

12 Dec 2011, 20:31

I wanted to add template text to the paginatorTemplate, something like as

Code: Select all

paginatorTemplate="Rows per page: {RowsPerPageDropdown} Jump to: {JumpToPageDropdown}"
However, the template text is completely ignored. Judging the DataRenderer source learns that there's a regex pattern mathing which only prints the matched {} variables and ignores the remnant.

This works fine in currentPageReportTemplate which uses just String#replaceAll() in CurrentPageReportRenderer. Older topics on the subject also confirms that this has worked the same way for patinatorTemplate in older PF versions.

By the way, creating a Pattern is relatively expensive, better would be to create it once as a constant and reference it instead. Also, String#replaceAll() in CurrentPageReportRenderer can better be String#replace() instead since there's no means of a regex matching here.

Edit: I encountered this problem in M4, but it still manifests in RC1. I've filed an issue report: http://code.google.com/p/primefaces/iss ... il?id=3035

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests