I’m building a pull-down-menu navigation for the rajiv.com site using the Google Web Toolkit (GWT) and I’m impressed by this Google product.
It allows you to create user interface (UI) widgets and dynamic functionality for your web app in Java. You develop and debug the app in an integrated development environment (IDE) such as Eclipse, using GWT’s hosted mode to run the Java code. For deployment, GWT compiles the client-side Java into JavaScript that runs in an HTML page. You still use CSS for styling and XML where your application needs it. You program and test with familiar Java tools, then deliver an AJAX interface without Java applets.
Developing a web page UI with GWT, Eclipse and Java saves a lot of time compared with hand-coding the AJAX interface. GWT handles many cross-browser differences. Its history API lets the application record navigation state and restore the right view when someone uses the browser’s back button.
The generated HTML host page is clean and documented with comments, automatically supplied by GWT.
Java programmers should welcome GWT since it gives them the ability to create rich dynamic HTML functionality with the development tools they know. You can view the archived menu page and its HTML wrapper here.