Google announced yesterday the official release of the Google Web Toolkit (GWT), a Java-based platform for the development of AJAX web applications that work in all mainstream web browsers. Designed to simplify AJAX development, GWT generates consistent, browser-neutral Javascript from simple Java source code.
According to Google, the modularity of Java facilitates a higher level of code reusability. Google also claims that using Java for AJAX development is beneficial because powerful Java IDEs like Eclipse significantly increase developer productivity. GWT provides a number of unique features that contribute to more effective AJAX development. With GWT, developers assemble applications by laying out various AJAX widgets in panels and associating operations with application events.
In some ways, it seems like GWT makes it possible for AJAX developers to leverage the same techniques used for conventional desktop application development. Developers can also create their own custom GWT widgets by combining existing widgets. New GWT widgets can then be deployed in JAR files and made available to other developers. The ability to create and distribute custom AJAX components that can be used in multiple web applications is certainly compelling, and it could potentially reduce the amount of time it takes to develop web applications. In addition to providing support for modular user interface construction, GWT also provides a robust RPC mechanism, a system for managing browser history, and a native Javascript interface that allows developers to mix Javascript into their Java code.
GWT comes with support for two different run modes. Hosted mode, which is primarily used for debugging, will run GWT applications as Java bytecode within the Sun’s Java virtual machine using a specialized web browser designed by Google. To run an application in web mode, developers use GWT’s custom compiler to generate Javascript and HTML that can be deployed on any web server.
