Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.0 RC1
-
Fix Version/s: TBD
-
Component/s: Paging/Sorting
-
Labels:None
Description
====
imported from sf tracker
id 1011575
submitted by Ralf Hauser - ralfhauser
http://sourceforge.net/support/tracker.php?aid=1011575
====
e.g. with webmail inbox, typically the provider
suggests a pagination default size (e.g. 20), but users
often can choose to increase that to 50, 100, or all
probably, this is possible without an enhancement to
the library jar, but it would be great to add a working
example/tutorial example derived from
http://www.displaytag.org/example-paging.jsp
imported from sf tracker
id 1011575
submitted by Ralf Hauser - ralfhauser
http://sourceforge.net/support/tracker.php?aid=1011575
====
e.g. with webmail inbox, typically the provider
suggests a pagination default size (e.g. 20), but users
often can choose to increase that to 50, 100, or all
probably, this is possible without an enhancement to
the library jar, but it would be great to add a working
example/tutorial example derived from
http://www.displaytag.org/example-paging.jsp
This is what I did (or tried to do):
In my Struts application, I simply allow the user to set a certain pagesize and then make that pagesize available in the session scope. In each JSP page that uses DisplayTag, I tried this:
setdisplaypref = (String) session.getAttribute("setDisplayPref");
And then tried:
<display:table uid="t1" name="sessionScope.results" pagesize="<%setdisplaypref%>" export="true" defaultorder="descending">
However this does not work.