My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

GWT module to export a table, without writing any server-side code.

Following the dry principle, you don't want to write a table building twice, one for the GWT UI, and another for the excel export? This framework is for you!

How it works ?

The main point is that excel and other modern spreadsheet knows how to render an html table, so just open the dynamically built html table with the correct mime-type, and that's all. The gwt-table-to-excel servlet acts as a mirror.

Here is an exemple with a GET request: try to open a table

A get request will only work for short table due to url length constraints. The framework actually use a POST request.

Watch the Demo

Scope

Any browser, any server, any MS Excel or Open Office1

Please notice me if you find incompatibilities.

Limitations

  • The ccs style is not taken into account, so if you want to preserve it, you would have to convert it into dom injection with setStyleAttribute
  • As the whole table is passed into the request, you'll won't have very good performances for very large tables

Continue with Usage

1 Open Office 3.2 does open the table after an a automatic import, but the style is lost

Powered by Google Project Hosting