datatable {totalRecords}

UI Components for JSF
Post Reply
zj0ch
Posts: 8
Joined: 31 Aug 2010, 16:05

01 Sep 2010, 05:15

hi
I use p:dataTable and set currentPageReportTemplate="{currentPage}/{totalPages} rowcount:{totalRecords}".
first table has 1000 records, and {totalPages} {totalRecords} is ok.
but when i delete some records from table and then click nextpagelink, {totalPages} {totalRecords} is not change, why?
i test 2.1 and 2.2m1 is same.
can anyone help me ? thanks

zj0ch
Posts: 8
Joined: 31 Aug 2010, 16:05

01 Sep 2010, 16:32

I find when pagelink click, table data is refresh but paginator is not refresh, so {totalPages} and {totalRecords} is not change(but use lazy, when you click pagelink, the record number could be changed because many people operate together), Can you tell me how to do it ? thanks.

I suggest add refreshlink in paginator.
:)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 43 guests