GWT 2.5 Tutorial

Interested in training from the author of these tutorials? Contact hall@coreservlets.com for info on customized courses onsite at your location.


This is part of the much larger Ajax and GWT tutorial. This section is from Marty Hall and Yaakov Chaikin, and it concentrates on use of the Google Web Toolkit (GWT). It assumes a small amount of the general knowledge from the Ajax basics section, but except for the JSNI section, no detailed knowledge of JavaScript is required. Click on a topic below to get the detailed tutorial, download the source code, or try out exercises on the topic.

The GWT training courses on which this tutorial is based are usually taught on-site at customer locations, but public training courses are periodically scheduled for people with too few developers for an onsite course. For descriptions of the various other courses (Ajax, jQuery, JSF 2.0, PrimeFaces, servlets, JSP, Spring, Hibernate, RESTful Web Services, Hadoop, Java 7 or Java 8 programming, etc.) that are available, please see the J2EE training course page. To inquire about a customized training course at your location, please contact Marty Hall at hall@coreservlets.com.

If you find these free tutorials helpful, we would appreciate it if you would link to us. Send corrections or feedback on any tutorial to hall@coreservlets.com.

GWT 2.5: Overview and Getting Started

  • Tutorial section in PDF (best for printing and saving).
  • Tutorial section on SlideShare (preferred by some for online viewing).
  • Topics covered:
    • What GWT is all about
      • Motivation
      • Pros
      • Cons
    • Installing GWT
      • Core GWT
      • Eclipse plugin
      • Browser plugin
    • Making a project
      • Using Eclipse plugin
    • Testing process
      • Development mode
      • Production mode
      • Deployed to standard Java server
  • Source code of examples in this section:
    • MyGwtApp.zip.
      First "hello world" app used in the GWT intro section. This is simply what you get when you press "New Web Application Project", with no changes whatsoever. Bundled as a zipped Eclipse project that assumes you have GWT 2.5 or later and are using the Google Eclipse Plugin.
  • Exercises to reinforce the concepts in this section.
  • Running apps. Deployed versions of the apps from this section.

GWT: Programming Basics

  • Tutorial section in PDF (best for printing and saving).
  • Tutorial section on SlideShare (preferred by some for online viewing).
  • Topics covered:
    • Development process
      • Making a project
        • File > New > Web Application Project
      • Deleting extraneous files
        • Most Java classes other than AppName.java
      • Editing auto-generated HTML file
        • Preserve link to load JavaScript file
        • Create HTML elements with ID's for GWT to use
      • Editing auto-generated Java class
        • Add client-side event handlers
        • Create and call custom Java classes
    • Testing process
      • Development mode
      • Production mode
      • Deployed mode
  • Source code of examples in this section:
    • GwtApp1.zip.
      App used in the basic GWT section. It is built as an Eclipse project that assumes you have GWT 2.5 or later and are using the Google Eclipse Plugin.
  • Exercises to reinforce the concepts in this section.
  • Exercise solutions.
  • Running apps. Deployed versions of the apps from this section.

GWT: Widget Event Handling

Laying out Windows with Panels: Part I -- Simple Panels

Laying out Windows with Panels: Part II -- Composite Panels

GWT: Extended GUI Widgets

GWT: Using RPC to Access Server-Side Data

GWT: Handling History and Bookmarks

GWT: Creating Custom Widgets

GWT: Declarative Layout with UiBinder -- Basics

GWT: Declarative Layout with UiBinder -- Advanced Topics

GWT: Introduction to Cell Widgets

GWT: JSNI -- The JavaScript Native Interface

GWT: Introduction to the Model-View-Presenter (MVP) Architecture

GWT: Advanced MVP: GWT MVP Framework

GWT: Open Source GWT-Tools RPC Service

More Information

Java

JSF (JavaServer Faces)

Servlets & JSP
Ajax, GWT, & JavaScript

Spring, Hibernate, & JPA

Struts