Hi, You can use GWTruts, it is an open source MVC controller (I am its developer and I actually implemented it because I needed something similar to spring MVC). It provides two types of controllers a standard controller interface which is a synchronize controller and an AsyncController interface that you could use if you want to make async RPC calls.
I am going to release something in the next 3 weeks that makes it possible to use ordinary Spring MVC controllers as GWTruts controllers. That way you now longer need to worry about aync calls and async call backs. I am using GWTruts on a commercial project based on Appfuse (Spring MVC + Hibernate+ Maven). It works really good, so if you are familiar with Spring MVC I suggest you check it at (http://apps.sourceforge.net/trac/ gwtruts/) As I said I am its developer so I am biased toward it but the main reason that I developed this code was that I didn't find a pour MVC implementation for GWT. All suggestions that I found were about some modified MVC patterns. In GWTruts you return the name of the next view as the return value of your controller and you define all the controllers (name->class) and views (name->class) through XML config files. Cheers, On Feb 24, 6:13 pm, charles <[email protected]> wrote: > Hi, > > I am a newbie to GWT and I am trying to develop a web application > using a library (my client API to my server). I have read 2 books > before starting: GWT In Action and GWT In Practice from mannng. > My datas are stored in DB on the server side, that' why I am using > RPC. In addition, I have read that it is better to use MVC concept to > separate datas from view using a conroller. So I am trying to use both > RPC and MVC. I have seen a lot of examples of each one separately but > never together... I have problems to elaborate my architecture with > these two... > > My questions are: > - is it a good way to mix these two concepts ? > > If yes, > - do I have to duplicate datas in my Model (MVC) ? > - what about asyncCallback when calling a service: whe doing that part > in a widget (view side), I was able to display a window (Window.alert) > when the RPC failed. Now, this code is done in the Model (MVC) so it > doesn't make sense to add this kind of code there... > - how can I handle exceptions? For example, as I can't display a > window in the Model part, I would like throw an exception which will > be thrown from the Model to the View through the controller.. How can > I do that? I can see that onFailure method from AsyncCallback doesn't > throw any controlled exception. In addition, it is an asynchronous > call... > > Thank you very much help. > > Regards > Charles --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
