Basically you should not do this.
This question has been asked and answered in another post.
I am appending here my response to the other post
----------------------------------------------------------------------------------------------------------------------------------
It is not impossible, nor even difficult to integrate GWT with other
technologies, nor am I against it.
However, it is not advisable to mix multiple/conflicting control
mechanisms in any application.
There are some specific notes about GWT integration towards the end of
this post.
Web frameworks provide two main functionalities:
1. Retrieval and display of data from a remote source
2. Control / flow of the application control
While it is quite legitimate to have multiple mechanisms for
retrieving and displaying data, which is I think the most basic
problem you are facing (display excel spreadsheets, or various other
generated data), it is not a good idea to have multiple forms of
control within your application.
It would be rather like having a large car in which you can transport
all sorts of different things, but you would not want to have two
people trying to driving the car at the same time.
And you are correct, GWT is a younger technology than say JSP and
there may not be 'out of the box' code for displaying all of the
different data formats that you require nor coverage of integration
with all other useful technologies.
Currently GWT is mostly a programmer's toolkit; if the solutions are
not there you are expected to create your own using GWT as the base of
those solutions.
However, many people have already done this, so there are already
quite a few 'extension-libraries' (see below.)
The library G4JSF which seems to offer GWT and JSF integration appears
not to be an active project. The most recent version I could find was
from Jan 2007, over 12 months old.
The article covering G4JSF mentions only using GWT as a library of UI
components, not as an RPC or integration mechanism, thus I would
gather the library was (attempting) only to use the 'client' side of
GWT.
There are references to the 'current' G4JSF project website being
moved to a couple of different places, but following the prescribed
links I found no trace of G4JSF.
-----------------------------------------------------------------------------------------------------------------------------------------
GWT INTEGRATION / EXTENSION:
There are various extension & integration techniques available for
GWT.
Perhaps the most obvious is that you can generate HTML and drop it
into a GWT widget, however, the HTML should be considered only as a
technique for containing & formatting the data, the HTML should not
contain links to other HTML otherwise you will lose control of the
application.
You can create new 'widgets' (client objects), which can exhibit both
'presentation' and 'behavior', by extending or combining existing GWT
widgets, you can also do this by implementing a 'native JavaScript'
method. These techniques are covered in the standard GWT
documentation.
In addition there are various and a growing number of freely available
GWT extension libraries.
GWT - Spring integration:
http://gwt-widget.sourceforge.net/
The above website has both a server library (SL) which covers Spring
integration and a widget library (WL) which contains a number of
useful widgets, in particular allowing the use of SVG within GWT.
GWT - Hibernate integration:
http://hibernate4gwt.sourceforge.net/
Useful widgets and examples of implementing 'native JavaScript'
methods:
http://gwt.components.googlepages.com/
Extensive and sophisticated UI components:
http://gwt-ext.com/
Other useful widgets
http://www.asquare.net/gwttk/
One other suggestion, if you need integration with other technologies,
search for integration between them and Java rather than between them
and GWT.
Since GWT calls Java on the server-side you can build your integration
from there.
For example there are Java / Excel integrations provided by:
http://www.jxcell.net/
I have not used the above software; it offers Java to Excel connection
& a Swing Excel 'look-alike'
http://poi.apache.org/
The above library I have used & it works well (this was in a pre-GWT
project).
The library gives access to many file types produced by Microsoft
products.
http://www.rgagnon.com/javadetails/java-0516.html
This lists many other Java/Excel options, one of which allows SQL to
be used to read Excel as if it were a database (I have not used this
and cannot comment on its usability, but it sounds like an interesting
idea.)
I hope this helps.