Creating Dynamic Web Applications with Google Web Tools

Download Report

Transcript Creating Dynamic Web Applications with Google Web Tools

Creating Dynamic Web
Applications with
Google Web Tools
Prepared and Presented by: Brent Adkisson
For the Dynamic Languages User Group.
Why GWT?
 Because it is cool!
 Seriously, it gives the developer the ability to
write code and not worry about the issues of
cross browser development.
 Backed by a solid user group
 100% Open Source
What is GWT?
 Google Web Toolkit (GWT)
GWT is Google’s open source AJAX
development kit.
 Makes development of browser applications
 Enables the same code to be used as a
desktop application.
 Java to Javascript compiler
The Basics
 GWT allows an architect to develop the
majority of the application in Java.
 Java code is translated into html objects
 Java code is also translated into Json
Using the GWT
 GWT Uses Widgets for UI construction
 Similar to Swing Panels are used for widget
 Buttons and other widgets use a click
public class Hello implements EntryPoint {
public void onModuleLoad() {
Button b = new Button("Click me", new ClickListener() {
public void onClick(Widget sender) {
Window.alert("Hello, AJAX");
Supports a Variety of widgets
Hierarchical trees
Tab Bars
Menu Bars
Modal Dialog boxes
List Boxes
Debugging and Deploying
 Hosted mode
 Web mode
GWT Architecture
How Well does it work?
 Compiler Generated Javascript size
A typical, full-featured GWT application will require the user to download
about 100K of cacheable JavaScript, which is in line with most hand-written
 End User Performance
AJAX applications
GWT applications are almost always as fast as hand-written JavaScript. The GWT
compiler avoids adding any wrappers around any functionality that is implemented
natively in the browser.
 Development Time
With so little time spent debugging problems in individual web browsers, you can spend
much more of your time on application functionality. Development time efficiency is our
favorite part of GWT.
Dynamic reusable UI components
Simple to use RPC
Browser History Management
Real Debugging
Browser compatible
JUnit Integration
Interoperability and fine grained control
Completely Open Source
Google Web Toolkit 1.3.3
(c) Copyright Google, Inc. 2006. All rights reserved.
Visit Google Code (
This product includes software developed by:
- The Apache Software Foundation (
- Tomcat ( with modifications
- Xerces (
- Tapestry (
- The Eclipse Foundation (
- Java Development Tools (
- Standard Widget Toolkit ( with modifications
- The Mozilla Foundation (
- Mozilla 1.7.12 (
- Rhino ( with modifications
- The WebKit Open Source Project (
- The W3C consortium (
- The SAX project (