When an export link is clicked, a parameter is sent in request. Just detect
that param in your PaginatedList implementation and return full list (size &
elements).

Here is a code snippet of my export detection implementation:


---------------------------------------------------------------------------------------------------
   private boolean isExport() {
       boolean bExport = false;

       if (WebContextHolder.getWebContext() == null) return false;

       Map values = WebContextHolder.getWebContext().getRequest()
       .getParameterMap();

       if (values != null && !values.isEmpty()) {
           Iterator i  = values.keySet().iterator();
           while (i.hasNext()) {
               String name = (String)i.next();
               // Export parameter is of the form 'd-5314487-e'
               if (name.startsWith("d-") && name.endsWith("-e")) {
                   bExport = true;
                   break;
               }
           }
       }

       return bExport;
   }
---------------------------------------------------------------------------------------------------

NOTE: WebContextHolder  and WebContext objets maintain a reference to actual
Request & Response objects.


Ricardo.



On 2/5/07, Emiliano Armellin <[EMAIL PROTECTED]> wrote:

 Hello,

how can I export full list in excel (or CSV, xml etc) using external
paging and sorting with valuelist pattern (implementing
org.displaytag.pagination.PaginatedList)?

Is it possible?

Thanks

--
Emiliano Armellin

   - W_
   www.ateikon.com
   - @_
   [EMAIL PROTECTED]
   - T_
   *+39 0422 452101*

 [image: Get Firefox!]<http://www.spreadfirefox.com/?q=affiliates&id=15653&t=86>
[image: Get Thunderbird] <http://www.mozilla.org/products/thunderbird/>

-------------------------------------------------------------------------
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-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user


PNG image

GIF image

-------------------------------------------------------------------------
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-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to