13

A question for all the GWT gurus out there.

I'm a newbie in GWT and am trying to understand the best practices of coding a GWT application. I have gone through "Large scale application development and MVP" based on Ray Ryan's talk at Google I/O 2009 and it has given me a good starting point. I downloaded the sample source code as well for the Contacts application based on the best practices listed.

The application I'm trying to develop using GWT is a bit bigger (in terms of the modules involved) when compared to the sample "Contacts" application & so I want to split it up into multiple functions.

I have been reading that having a single Entry point in a GWT application is a good idea, and I don't want to dump all the code in one single AppController class & one single RpcService, what would be the best approach in this situation?

How would I go about dispatching the control to multiple controllers? Is there a way to achieve this using some classes in the GWT framework?

GWTNewbie
  • 395
  • 4
  • 16
  • I wasn't a 100 % clear in my mind about what I wanted when I posted this question. I think after further reading, I have found what I wanted - The GWT best practices implementation along with a bunch of other things that I need to do @ 1. http://blog.hivedevelopment.co.uk/2009/08/integerating-gwt-dispatch-with-jboss.html 2. http://peterkenji.blogspot.com/2009/09/getting-gwt-spring-dispatch-library.html – GWTNewbie May 31 '10 at 15:47

3 Answers3

13

For large GWT apps, a framework like GWTP (which is a fork of gwt-presenter and gwt-dispatch) is almost necessary. It provides things like Places for handling location/history, a handy Presenter framework, EventBus, and really simple codesplitting.

André Onuki
  • 428
  • 2
  • 12
Jason Hall
  • 20,632
  • 4
  • 50
  • 57
0

If you are developing very big application then split your application into multiple modules. For client side MVC pattern I suggest PureMVC.

http://puremvc.org/

DonX
  • 16,093
  • 21
  • 75
  • 120
0

If you're worried about initial load size and it's possible to load your big app in different chunks, consider Code Splitting

Eric Landry
  • 638
  • 1
  • 9
  • 22