I'm observing the same thing.  We have accurate external paging and sorting, 
but the banner is inaccurate.

________________________________



Message: 1
Date: Sun, 19 Feb 2006 02:56:16 -0800
From: "Dmitriy Volk" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [displaytag-user] External pagination - banner shows wrong information
Reply-To: [email protected]



Hi!

I'm having a problem with displaytag-el 1.1. I'm using the external
sorting and pagination, and selecting just the page-worth of data from
the db. I pass the total number of records to display tag, and it
displays perfectly. Let's say I have a total of 14 records, and my
page size is 5.

If I use the offset attribute, it displays the first page perfectly,
shows just one record on the second page, and no records on the third
one. However, the banner shows 14 as a total number of records and
says there are three pages.

If I omit the offset attribute, It shows all the data correctly on all
pages, the banner shows three pages available, but on all three pages
it says "displaying 1 to 5", even though it shows the current page
number correctly.

Is it a bug or I'm doing something wrong? Here's the code:

<display:table name="subscribers"
                pagesize="${pageSize}" partialList="true" size="totalRecords"
                sort="external" id="subscribersTable" defaultsort="1"
defaultorder="ascending" >
..... my columns......
</display:table>

All the variables are being set correctly.

Thank you!

Dmitriy




<<winmail.dat>>

Reply via email to