[
http://jira.codehaus.org/browse/DISPL-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127860
]
Alison commented on DISPL-469:
------------------------------
If you write a class implementing org.displaytag.pagination.PaginatedList and
setup your display:table tag to reference this then everything works nicely:
<display:table id="service" name="myForm.paginatedList" sort="external"
requestURI="">
However, if you have your own class and you attempt to make it work via a
display:table combination of name, partialList, size, and pageSize the
paging.banner.some_items_found is incorrect:
<display:table id="service" name="myForm.page.results"
sort="external" partialList="true"
size="${myForm.size}"
pagesize="${myForm.pageSize}" requestURI="">
It appears that (when you don't use a paginated list) the TableTag class falls
back to a SmartListHelper which will return 0 for getFirstIndexForPage if
partialList is true.
> External Paging and reference number in header
> ----------------------------------------------
>
> Key: DISPL-469
> URL: http://jira.codehaus.org/browse/DISPL-469
> Project: DisplayTag
> Issue Type: Bug
> Components: Paging/Sorting
> Affects Versions: 1.1
> Reporter: Benoit Delagarde
>
> When using the external paging, the number displayed in the header for the
> "walk" in the list remain always the same, i.e. from the first to the size of
> the list.
> The header display look allway like this : "120 items found, displaying 1 to
> 10." even if I'm in the third page for example.
> But display tag can calculate the current number since we provide the current
> page, the number of elements displayed per page and the total number of
> element.
> The problem seem to be located in SmartListHelper.getFirstIndexForPage(int
> pageNumber) witch alway return 0 if we use partial list.
--
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel