you have clear some issues.however still i have some questions. for view i have used web macros. now i am not getting how to use JSON. i have used json and xml before. but i am not getting where you are trying to place in existing framework. My biggest concern is that i dont wanna change the serverside script. can you elaborate more so that i can achieve my goal without modifying server side script.
moreover, by viewing all the documents on net i can say that following procedure can be followed to achieve goal. all current controller classes will become service. since gwt supports only rpc call , All controller classes of mvc will convert to service classes. all view classes are no longer useful since gui related things will be handled by gwt. there will be one gwtcontroller which maps particular requests to specific service. correct me if i am wrong.. bunch of thanks to both.. On Jun 21, 7:54 pm, Sledged <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
