Hi,

We are using DisplayTag 1.0 right now in our application and love it.
It's really simplified displaying data, and we're using it on 20+ pages
within our application.  However, we're running into an issue related to
the calculation of the number of pages of results.

Any time we have a set of results that is over the standard number of
displayed pages, the last page number does not display (the one that has
the list of partial results).  We current have paging.banner.group_size
set to 8, pagesize="8", and sort="list".  We also use Struts, so we have
the requestURI set.

For example, if we perform a search which results in 606 items, we
should see 76 total pages instead of 75 (what is shown on screen).
There would be 75 pages of sets of 8 and then 6 left over (for page 76).
When we get 606 items back, here is what we see:

Default:
(number 1 is bold; First and Prev are just text, Next and Last are
active links)

    606 items found, displaying 1 to 8.
    [First/Prev] 1, 2, 3, 4, 5, 6, 7, 8 [Next/Last]

When we click on the link for Last, we see:
(no number is bold; First and Prev are active links, Next and Last are
just text)
(The parameter in the URL (d-49216-p=76) is 76, presumably for page 76.)

    606 items found, displaying 601 to 606.
    [First/Prev] 68, 69, 70, 71, 72, 73, 74, 75 [Next/Last]

When we click on the link for 75, we see:
(number 75 is bold; First, Prev, Next, and Last are all active links)

    606 items found, displaying 593 to 600.
    [First/Prev] 68, 69, 70, 71, 72, 73, 74, 75 [Next/Last]

Our users feel that there should be a page number 76 that is shown,
since it has the remainder of the results (601 - 606).  Is this a known
issue?  Unfortunately, I cannot upgrade to 1.1 because we are stuck w/
JDK 1.3 (a corporate standard), and 1.1 requires JDK 1.4.  Can anyone
confirm whether this is an issue or not?

Thanks so much for your time.

--Thomas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to