I recently dealt with a similar issue. In my case I wanted to create a js gui while still being able to support scriptless browsers. (Additionally, I wanted to make the application accessible via SOAP.)
Since you already have a spring controller, the most readily available option of which I can think is to use your JSP(s) to convert the model into JSON. The GWT API supports JSON, and it shouldn't require you to change any server-side code. If you choose to use GWT's RPC, I can't think of a way to access the spring controller's model, but you can continue to use it to support scriptless client-side environments. However, you can have the controller use the GWT RPC interface and server-side implementation class to retrieve the model using DI, which is what I did. (Additionally, I annotated the interface to be a web service, so the interface and it's implementation are pulling triple duty.) On Jun 18, 5:46 pm, bhumij <[email protected]> wrote: > your reply really makes sense. since I want to change entire gui to > GWT, there > is no need to use VIEW aspects. However, How can I access the classes > or objects added in controller class. > I have ready made spring mvc application. Is it possible to simply > modify the existing controller to gwtcontroller. > > thanks in advace > > On Jun 17, 8:04 pm, Arthur Kalmenson <[email protected]> wrote: > > > You can still use Spring MVC with GWT, but if your entire UI is going > > to be written in GWT you won't be using the View and Model aspect of > > Spring MVC. I just use it for the servlet dispatcher to direct > > requests to the appropriate controller which implements the GWT > > RemoteService. If you search the group you'll find lots of information > > on how to integrate GWT with Spring MVC. > > > -- > > Arthur Kalmenson > > > On Tue, Jun 16, 2009 at 9:23 PM, bhumij<[email protected]> wrote: > > > > I have developed java-spring application. its gui is developed using > > > javascript and 3rd party lib like YUI. Now I need to use GWT for GUI. > > > I want to use GWT for only GUI developing purpose. I have no idea how > > > i can integrate it into existing spring framework. View classes of > > > spring frame works are responsible to generate GUI with using YUI. > > > since GWT generates .js files itself. i am clueless in this > > > integration with spring framework. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
