"A running start for your GWT (1.6.x or 1.5.x) maven2 project" --Sam Brodkin, founder of and sole contributor to this project
NewsSee my gwt spring starter app for easy spring integration with GWT 2.0 and maven2! Otherwise, for now for GWT 2.0 see
... [More] http://mojo.codehaus.org/gwt-maven-plugin/gwt20.html. This project is finally updated for GWT 1.6.x.
Looking forward, I've switched from the maven-googlewebtoolkit2-plugin (deprecated) to the codehaus gwt-maven-plugin - 6 July, 2009
Wow! See this app deployed live on Google App Engine For Java - 7 July, 2009
Summary of purpose in one questionQuestion: Why is the learning curve for GWT so steep?
Answer: Because there are no best practices and no good (non-trivial) sample starter apps.
Solution: I'm going to spoon feed you a sample starter app and walk you through it.
This architecture has proven it's strength to me during the development of my complex application.
Project Guidelines:As with any new Java project you'd start, it should:
Be built with maven Be unit and integration tested (partially covered here) Be under continuous integration (not covered here yet) if you disagree then you're not in the choir I'm preaching to.
Architecture:It may help to refer to this picture while you're reading this
A maven multiproject with:
A server project pure java, use what you want, integrate spring, hibernate, whatever, no problem will hold all domain objects in a client package (which will be shared with the client. GWT will take care of serializing them during RPC calls from the client to the server. XStream integration for marshaling/unmarshaling objects (in this example server options)
Q: What about the maven gwt archetype?A: There is a new one that comes with the codehaus gwt-maven-plugin but it doesn't create a multiproject with separation of GWT and vanilla Java classes.
What's missing from GWT?A good mvc framework Built-in maven support
References:-The Codehaus gwt-maven-plugin: http://mojo.codehaus.org/gwt-maven-plugin/ -Integrating gwt incubator: http://code.google.com/p/google-web-toolkit-incubator/wiki/HowToUseTheIncubator [Less]
GWT Professional JSON Serializer is a free, open source library that allows you to serialize any JSON text into a java object (and reverse). It is crucial functionality when there is no GWT-RPC on server side. This JSON serializer allows easy connecting GWT client side to any standard server side
... [More] technology.
All Java classes in your project which are marked just by implementing JSonSerializable interface are put into JSON serialization context in your GWT application. [Less]