wishOptimizedIteration only if !partialList AND null == paginatedList
---------------------------------------------------------------------
Key: DISPL-441
URL: http://jira.codehaus.org/browse/DISPL-441
Project: DisplayTag
Issue Type: Bug
Components: Paging/Sorting
Affects Versions: 1.1
Reporter: Dustin
Priority: Minor
I reuse a jsp for displaying lists. I want it to be able to display a 'full'
list and page according to the 'pagesize' attribute but I also want it to allow
PaginatedList and ignore that value since the PaginatedList will override it.
Below is the code I changed to do this.
// do we really need to skip any row?
boolean wishOptimizedIteration = ((this.pagesize > 0 // we are paging
|| this.offset > 0 // or we are skipping some records using offset
|| this.length > 0 // or we are limiting the records using length
) && !partialList && (null == paginatedList)); // only optimize if we
have the full list
I only added " && (null == paginatedList)"
--
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