| Free tutorials for Java, Eclipse and Web programming |
Version 2.1
Copyright © 2008 - 2011 Lars Vogel
03.02.2011
| Revision History | ||
|---|---|---|
| Revision 0.1 | 03.04.2007 | Lars Vogel / Waldemar Geppart |
| Created with GWT 1.4 | ||
| Revision 0.2 - 2.1 | 11.10.2008 - 03.02.2011 | Lars Vogel |
| bugfixes and enhancements | ||
Table of Contents
The Google Web Toolkit (GWT) is a toolkit to develop Ajax web application with Java. Once the Java code is finished, the GWT compiler translates the Java code into HTML and Javascript. The compiler creates browser specific HTML and JavaScript to support all the major browsers correctly. GWT supports a standard set of UI widgets, has build in support for the browser back button and a JUnit based test framework.
GWT provides two modes
Development Mode: allows to debug the Java code of your application directly via the standard Java debugger.
Web mode: the application is translated into HTML and Javascript code and can be deployed on a webserver.
GWT applications are described as so-called modules. A module "modulename" is described by a configuration file "modulename.gwt.xml". Each module can define one or more Entry point classes. An entry point in GWT is the starting point for a GWT application similar to the main method in a standard Java program.
The module is connected with an HTML page, which is called "host page". The code for a GWT web application executes within this HTML document. The HTML page can define "div" containers to which the GWT application can assign UI components. Alternatively the GWT UI components can be assigned to the body of the HTML page.