PDA

View Full Version : Clientside file generation with GWT(GXT)



Ekambos
12 Jun 2011, 1:00 PM
Beeing able to generate files on the client is a common requirement and a usefull feature for a webapplication .
In one of our applications for example we have users generating reports every 30-45 seconds. By beeing able to do that on the client we do not need to scale our servers when the number of users grows.

Gwt4Air (http://code.google.com/p/gwt4air/) introduced in version 2.1 a File API that uses Flex and let u create files(PDF , Excel, Text, PNG, JPEG...) on the client by adding a Flex widget into your GWT application. The problem with that approach is that you needed to load an entire instance of the Flex framework just to be able to read/write files on the client

Gwt4air 2.2 will introcude a more lightweigt solution that does not require Flex(Flash is still needed dough). Please take a minute to visit:

http://gwt4air.googlecode.com/svn/trunk/exporter/GwtAir.html

to see the preview in action

I m lookig forward to hearing your feedback.

Regards,

Alain

Ekambos
14 Jun 2011, 10:15 AM
The demo now includes a File Reader API.
Cheers,
Alain

Ekambos
20 Jun 2011, 10:37 AM
I have changed the demo to demonstrate exporting a GXT(2.XXX) chart to a PNG image.
Exporting to others formats(PDF, JPEG, etc.. ) will also be possible
cheers,

Alain

rmulcha
12 Apr 2012, 7:56 AM
Does GWT4Air work with GXT3, and are there any samples pls.

Ekambos
24 Oct 2012, 12:27 AM
Not that i m aware of. But i heard that the guyz are working(I m not the owner of the project anymore) on the next version of the library.
So stay tuned :)

Ekambos
28 May 2013, 12:52 AM
It looks like the new version will work with any GWT based library for clientside I/O

http://emitrom.com/announcements/flash4j-3.1-ga

E (http://emitrom.com/announcements/flash4j-3.1-ga)njoy :)

Ekambos
22 Jun 2013, 5:41 PM
And see it in action here. The demo export a 2.X GXT chart to PDF and PNG on the client.

http://emitrom.github.io/Flash4j/