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 -~----------~----~----~----~------~----~------~--~---
