Hi Neeraj,
The answer to how to integrate GWT with your existing Spring MVC Web
Application depends on how deeply you want to integrate GWT into your
application.

For example, if you would simply like to add a few GWT components to your
application pages, all you would need to do is define an binding element
(such as a <div id="gwtComponent"></div>) in the page you would like to
include your GWT component as well as a <script> tag referencing the GWT
bootstrap JavaScript file.

In your GWT code, you would bind your component to the <div> by calling
RootPanel.get("gwtComponent").add(mainPanel), for example.

On the other hand, if you would like your user interface to be fully built
with GWT as well as have easy client-server interactions going through your
Spring controllers, a Google search for the terms "gwt spring" should turn
up some useful results.

If you the level of integration you're aiming for is somewhere in between
the two extremes described above, perhaps you should consider using GWT RPC
for client-server communication and using the RPC servlets as gateways to
your Spring controllers.

GWT RPC:
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideRemoteProcedureCalls

Hope that helps,
-Sumit Chandel


On Sat, May 30, 2009 at 3:14 PM, Neeraj <[email protected]> wrote:

>
> Hello,
>
> I have a largish Spring MVC Web Application deployed as a .war file.
> Can some one give me pointers as to how to GWT enable this? Is it as
> simple as dropping a jar file into the lib folder and tweaking the ant
> build file? It is not possible to start from the GWT template
> application and move all existing stuff. How easily can GWT fit into
> the existing structure and how easy would it be to develop, debug and
> deploy?
>
> Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to