Using the Google Web Toolkit (gwt)
Jibes
This page will become part of the Java community Jibes.
I created a Jibes Focus Group for Ajax, and will somehow integrate this page
in the Jibes Group -- see http://jibes.eu/jibes/group/237.
Instructions on this page are for deploying gwt on Linux, but the
examples
are cross-platform.
Google Web Toolkit
On this page, the Google Web Toolkit (gwt) is discussed and explained.
For feedback and discussions, visit the Ajax discussion group on Jibes.
obtain the gwt
The gwt can be downloaded at http://code.google.com/webtoolkit/download.html.
running gwt on FC4 and later
Note: this patch is no longer required by the latest GWT (e.g. 1.1.10)
GWT is compiled against libstdc++.so.5, while Fedora Core 4 and later come
with libstdc++.so.6. Installing the older libstdc++.so.5 is required
(e.g. yum install compat-libstdc++-33)
(see Google Developer Forum)
getting started
A quickstart guide is available at
http://code.google.com/webtoolkit/gettingstarted.html.
Some things to notice:
- when you want to make a new project, create a subdirectory under samples
- cd in that subdirectory and run ../../applicationCreator your.package.client.YourMainClass
- Create an ant-file that will take care of all the compiling with
../../projectCreator -ant your-build
- If you have code to compile, run ant -f your-build.ant.xml
- Test the demo-application with ./YourMainClass-shell, this will show your
page in an emulator.
- Compile the stuff and test it in a Web-container with ./YourMainClass-compile
Examples
RSS Reader
My first example is an RSS-reader in AJAX, developed with the GWT.
It is described on this page
Click here to view the demo.
Click here for the source code.
Hello example using RPC
This example shows how to use gwt for client-server
communication.
GWT and TinyMCE HTML editor
This example shows how to use gwt with the HTML editor TinyMCE.
Resizable windows in GWT
In this resize example, it is shown how windows can be resized. The same principle holds of course for other
Widgets. The source code for this example can be downloaded here.
Last but not least, check this great website about Shortcut Advertising, completely build with GWT by LodgON.