Feature Requests item #695731, was opened at 2003-03-01 21:40 Message generated for change (Comment added) made by fgiust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536616&aid=695731&group_id=73068
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Luiz-Otavio Zorzella (zorzella) Assigned to: Nobody/Anonymous (nobody) Summary: Fixes and improvements Initial Comment: The attached patch does the following things: 1) When paging, add "..." to the paging banner if there are more pages after/before the last/first number presented. So, for example, if there are 30 pages, and we're seeing from 3 to 8, one would see: [First/Prev] ... 3, 4, 5, 6, 7, 8 ... [Next/Last] and know there are more pages after the 8th... 2) Still on paging, it is possible to specify the URL parameter name, to override the default "page", that will be used by the tag to paginate. That allows one to have more than one table in a page, and still paginate correctly (each table independently). Usage example: <display:table name="data" requestURI="/action/getData" pagesize="15" pagingParamName="datapage"> I need to write documentation for this -- and I will. I just need to make sure it gets accepted, before I do so. 3) Yet still on paging (I use it a lot!) it is possible to send the page number as either an attribute or a parameter. So, you may: request.setAttribute ("page", "10"); and forward to "/jsp/table.jsp", and the tenth page will be the current page. Before, it would only be possible to do this by forwarding to "/jsp/table.jsp?page=10". Again, I'll write documentation on this after it gets in. 4) Last one on paging, I made: prop.setProperty( "paging.banner.include_first_last", "true" ); so that "First" and "Last" would show up, as documented in the examples. 5) Decorators: before, for each row displayed, the tag would create a new instance of the table decorator. Now, I check -- if it's null, it creates one, otherwise it uses the existing one. ******************* I'm using the library extensivelly in my own application, so all the changes are tested and rock solid in my own env. ---------------------------------------------------------------------- Comment By: fabrizio giustina (fgiust) Date: 2003-09-26 00:12 Message: Logged In: YES user_id=798060 ((please create a new request/patch for each item when submitting!)) 1) this is totally customizable in displaytag 1.0-b1, you can achieve the same result customizing paging.banner.first and paging.banner.last properties ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-05-19 02:11 Message: Logged In: NO Hi Luiz-Otavio, I am great fan of display-tag library and using in the current project. I am exactly looking for fix you made display First/Next..........Prev/Last and also I have more than one table in a page. If I apply your patch I can fix both the problems. The ASSORTEDPATCHES2.txt has RCS version of SmartListHelper.java. Either email me SmartListHelper.java or let me know from where I can download SmartListHelper.java. Your help greatly appreciated !. Thank you, Anand userid=boompog [EMAIL PROTECTED] ---------------------------------------------------------------------- Comment By: Luiz-Otavio Zorzella (zorzella) Date: 2003-03-13 23:31 Message: Logged In: YES user_id=76882 a ---------------------------------------------------------------------- Comment By: Luiz-Otavio Zorzella (zorzella) Date: 2003-03-13 23:31 Message: Logged In: YES user_id=76882 Attachment missing ---------------------------------------------------------------------- Comment By: Luiz-Otavio Zorzella (zorzella) Date: 2003-03-13 23:29 Message: Logged In: YES user_id=76882 Two more fixed in this new path (includes the prior fixes): - when using paging, the system was iterating twice over the iterator, because "offSet/length" and "paging" were treated separatelly. Now, there is a single procedure that does either. - Because of this fix, more references to java.util.List were removed, and paging should work in any collection! - I've also had to debug the code, so there is a big section of a method that was transformed in another method, increasing readability -- no changes were done to the code itself. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536616&aid=695731&group_id=73068 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel