Sunday, March 11, 2007

Google Web-toolkit - The Future desktop web applications


With the released of Google Web-toolkit(Open Source Soft,beta release) , developing AJAX based web applications became lot more easier for the java developers. With the help of Google web toolkit , the entire application can be written in Java (similar to awt coding std) which gets converted into the web application using Web-toolkit compiler. We can easily plug in the Spring Framework environment into the GWT application, in that way we can go with the J2EE based framework development. Google web toolkit provides you the two ways of running your application. One in the hosted mode and other is in the web mode . The basic difference in these mode is that in hosted mode your java code gets converted into Javascript-Html code every time when you run your application and in the web mode(production mode) it picks up from the cached html. AJAX code generated in such a way that it runs on all the browsers which is amazing ...



I think Google web toolkit is going to be the future for desktop web applications. Now we can provide a desktop based functionality on web very easily without writing the single line of AJAX specific code. For the server side coding , we can very easily use O-R mapping tools(EJBs,Hibernate,Oracle Toplink) . Google Toolkit provides you to write server side code in the specially written class which extends RemoteServiceServlet class which is similar to a servlet. It also provides a way to serialize a java object between the client and server which gets converted into an ajax call to a servlet after compilation.



Google Toolkit provides you AWT equivalent components called Widgets for creating the basic UI in html pages. Some of the widgets like popups,menues,tabs are just amazing. There are number of open source widgets available from the GWT community which is growing with every passing day. Its surly a future tool for j2ee application development , thanks to Google for this innovative tool.

No comments: