Pagination/sorting links are incorrect when using externally sorted and locally
sorted tables in same JSP page
--------------------------------------------------------------------------------------------------------------
Key: DISPL-443
URL: http://jira.codehaus.org/browse/DISPL-443
Project: DisplayTag
Issue Type: Bug
Components: HTML Generation, Paging/Sorting, Tag Library
Reporter: Dan Kokotov
This manifests itself either when the JSP page has two tables, the first
externally paged/sorted, and the second not, or when it has a single displaytag
table which is sometimes externally paged/sorted and sometimes not (the latter
case occurs for me because I have a custom report framework built on top of
displaytag, so there is a single JSP page that is used to render the reports,
and each report's configuration determines whether external sorting/paging is
in effect).
What happens is that for the external sorting/paging table, the pagination
links and sort links for the column headers are generated correctly. however,
when the non-external sorting/paging table is then rendered, its pagination and
sorting links are carried over from the externally paged/sorted table, instead
of being regenerated.
The cause of the problem is that TableTag.paginationList is only reset in the
release() method; however, according to the JSP 1.2 API, the release method is
only called when the Tag instance is GC-ed. The fix is to set
TableTag.paginationList to null in the cleanup method instead.
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel