[
http://jira.codehaus.org/browse/DISPL-440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86666
]
dfc commented on DISPL-440:
---------------------------
Just to clarify on the second case, that one did not have partial list
specified (or size, of course), but did specify offset.
> various problems with partial lists
> -----------------------------------
>
> Key: DISPL-440
> URL: http://jira.codehaus.org/browse/DISPL-440
> Project: DisplayTag
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: dfc
>
> I'm having several different problems with trying to get a partial list to be
> shown. (I'm using a partial list because the data list could be very long,
> and I don't want to need to find all of it at once.) The object I'm trying
> to show has, essentially, three fields, an ID, a date, and a title.
> If I don't bother implementing the PaginatedList interface, and just pass
> pageSize (or less) objects in, specifying external sort, partial list, and
> size, I get the correct data displayed, but the table header always says that
> I'm showing records 1 through pageSize (or less, if last page), no matter
> what page I'm actually on.
> I tried to get around this by padding out the List with bogus records. ie: I
> would be getting the first page, so I would actually retrieve those, but just
> have bogus data in the rest of the positions. This would work fine with the
> initial sort, but would only show one page in any other sort (either first or
> last page), and would mostly display one page off. So if I wanted to display
> the second page, it would show in the header that it was displaying, for
> example, the 6th through 10th records, but it would actually show the 11th
> through 15th ones.
> So finally, I tried implementing the PaginatedList interface. This worked
> almost perfectly. It was a bit annoying that the arguments changed, but not
> a big deal. What was more of a problem, however, was that I couldn't reverse
> the sort order. I could change it, but the link for the date column sort was
> always for ascending order. For some reason, it was never for descending.
> So I couldn't even test for reverse sorting.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel