Export GWT table into CSV, XLS, XML and PDF

857 views
Skip to first unread message

Kady

unread,
Jun 16, 2009, 10:42:07 AM6/16/09
to Google Web Toolkit
Is there an option to export the data from GWT tables to popular
formats like csv, xls, xml, pdf etc? If not, how can one build this
option?

Thank you.

Thad

unread,
Jun 16, 2009, 1:56:40 PM6/16/09
to Google Web Toolkit
I'm using OpenCSV (http://opencsv.sourceforge.net/) for creating CSV
files, but there's nothing magic that ties it to my GWT tables. The
CSV conversion is done on in a servlet using the same data that was
used to draw the client-side table, and then sent to the browser.

I'm using iText (http://www.lowagie.com/iText/) for creating PDFs.
Again, this is happening on the server, not in the client.

Carl Pritchett

unread,
Jun 17, 2009, 7:47:50 PM6/17/09
to Google Web Toolkit
I'm using iText for PDF, Apache POI for Excel export and Xstream for
XML.

These are all done server side (via servlets) - using a two call
strategy - one call to sent the data and then a second call to
retrieve and display the generate results in a window or an iframe.

I send my data model for export to the client. Note that it's all
custom work i.e. not directly supported by GWT

- Carl
Reply all
Reply to author
Forward
0 new messages