BackgroundLately, I've been able to work on some of my spare time projects, which somehow always seems to leads me to Web 2.0 topics.
For a new web application, I looked at technologies that enable me to create a Web 2.0 UI which communicates with a back end using AJAX.
Three years ago, I have created http://apollopoll.com based on WebSphere Smash, Dojo and JSON communication in between.
For the new project, I decided to look at new technologies to achieve something similar.
I found the following interesting technologies that I tried out:
- Google Web Toolkit(GWT)
- Dojo 1.5
Documentation is great: clear tutorials show you what GWT can do and the reference contains everything I was interested in.
GWT even has a GUI Builder: An eclipse plugin lets you layout the web application and connect events to Java code.
But as usual, a closer look gave me important drawbacks of the solution:
- GWT by default uses GWT RPC to communiate between client and server. I did not get into the details of GWT RPC, but I want to stick to JSON beacuse I love its simplicity, its readbility and because it is a common standard.
- Of course GWT also supports JSON, but that means
RestletSmall extension to a JEE Servlet provider (WebSphere, Tomcat,Jetty,...) that lets you create REST services based on JEE Servlets.
Simple and nice. Documentation is ok, and getting this to run in tomcat is about as easy and as lightweight as it gets.
The documentation is getting a lot better but can't nearly keep up with GWT. Reference is very nice, but examples are very specific to the functions, no example of an overall application is given.