You are previewing Google Web Toolkit.
O'Reilly logo
Google Web Toolkit

Book Description

A practical guide to Google Web Toolkit for creating AJAX applications with Java, fast.

  • Create rich Ajax applications in the style of Gmail, Google Maps, and Google Calendar

  • Interface with Web APIs create GWT applications that consume web services

  • Completely practical with hands-on examples and complete tutorials right from the first chapter

In Detail

GWT Ajax Programming shows you how to create reliable user interfaces that enhance the user experience.

GWT is an open source Java software development framework that makes writing AJAX applications like Google Maps and Gmail easy for developers who don't speak browser quirks as a second language. Writing dynamic web applications today is a tedious and error-prone process; you spend 90% of your time working around subtle incompatibilities between web browsers and platforms, and JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile.

GWT lets you avoid many of these headaches while offering your users the same dynamic, standards-compliant experience. You write your front end in the Java programming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML.

This book is for Java developers who want to create Ajax interfaces using the Google Web Toolkit (GWT). It focuses on useful, practical tasks from the first chapter.

The book is aimed at programmers who want to use GWT to create interfaces for their professional web applications. It concentrates on the serious side of Ajax: creating powerful, productive applications for browser platforms.

Table of Contents

  1. Copyright
  2. Credits
  3. About the Author
  4. About the Reviewers
  5. Preface
    1. What This Book Covers
    2. What You Need for This Book
    3. Conventions
    4. Reader Feedback
    5. Customer Support
      1. Downloading the Example Code for the Book
      2. Errata
      3. Questions
  6. 1. Getting Started
    1. Introduction to GWT
    2. Basic Download
      1. Time for Action — Downloading GWT
        1. What Just Happened?
        2. There's More!
    3. Exploring the GWT Samples
      1. Time for Action — Getting into KitchenSink
        1. What Just Happened?
    4. GWT License
    5. Summary
  7. 2. Creating a New GWT Application
    1. Generating a New Application
      1. Time for Action — Using the ApplicationCreator
        1. What Just Happened?
        2. There's More!
    2. Generating a New Application with Eclipse Support
      1. Time for Action — Modifying HelloGWT
        1. What Just Happened?
        2. There's More!
    3. Creating a Random Quote AJAX Application
      1. Time for Action — Modifying Auto-Generated Applications
        1. What Just Happened?
    4. Running the Application in Hosted Mode
      1. Time for Action — Executing the HelloGWT-Shell Script
        1. What Just Happened?
    5. Running the Application in Web Mode
      1. Time for Action — Compile the Application
        1. What Just Happened?
        2. There's More!
    6. Summary
  8. 3. Creating Services
    1. Creating a Service Definition Interface
      1. Time for Action — Creating a Prime Number Service
        1. What Just Happened?
    2. Creating an Asynchronous Service Definition Interface
      1. Time for Action — Utilizing the AJAX Support
        1. What Just Happened?
    3. Creating a Service Implementation
      1. Time for Action — Implement Our Service
        1. What Just Happened?
    4. Consuming the Service
      1. Time for Action — Creating the Client
        1. What Just Happened?
    5. Summary
  9. 4. Interactive Forms
    1. Sample Application
    2. Live Search
      1. Time for Action — Search as you Type!
        1. What Just Happened?
    3. Password Strength Checker
      1. Time for Action — Creating the Checker
        1. What Just Happened?
    4. Auto Form Fill
      1. Time for Action — Creating a Dynamic Form
        1. What Just Happened?
    5. Sortable Tables
      1. Time for Action — Sorting Table Rows
        1. What Just Happened?
    6. Dynamic Lists
      1. Time for Action — Filtering Search Criteria
        1. What Just Happened?
    7. Flickr-Style Editable Labels
      1. Time for Action — A Custom Editable Label
        1. What Just Happened?
    8. Summary
  10. 5. Responsive Complex Interfaces
    1. Pageable Tables
      1. Time for Action — Interfacing a Dataset
        1. What Just Happened?
    2. Editable Tree Nodes
      1. Time for Action — Modifying the Node
        1. What Just Happened?
    3. Log Spy
      1. Time for Action — Updating a Log File
        1. What Just Happened?
    4. Sticky Notes
      1. Time for Action — Playing with Sticky Notes
        1. What Just Happened?
    5. Jigsaw Puzzle
      1. Time for Action — Let's Create a Puzzle!
        1. What Just Happened?
    6. Summary
  11. 6. Browser Effects with JSNI and JavaScript Libraries
    1. What is JSNI?
    2. Moo.Fx
      1. Time for Action — Using JSNI
        1. What Just Happened?
    3. Rico Rounded Corners
      1. Time for Action — Supporting the Labels
        1. What Just Happened?
    4. Rico Color Selector
      1. Time for Action — Wrapping the Color Methods
        1. What Just Happened?
    5. Script.aculo.us Effects
      1. Time for Action — Applying Effects
        1. What Just Happened?
    6. Summary
  12. 7. Custom Widgets
    1. Calendar Widget
      1. Time for Action — Creating a Calendar
        1. What Just Happened?
    2. Weather Widget
      1. Time for Action — Creating a Weather Information Service
        1. What Just Happened?
    3. Summary
  13. 8. Unit Tests
    1. Test a GWT Page
      1. Time for Action — Creating a Unit Test
        1. What Just Happened?
    2. Test an Asynchronous Service
      1. Time for Action — Testing the Asynchronous Service
        1. What Just Happened?
    3. Test a GWT Page with an Asynchronous Service
      1. Time for Action — Combining the Two
        1. What Just Happened?
    4. Create and Run a Test Suite
      1. Time for Action — Deploying a Test Suite
        1. What Just Happened?
    5. Summary
  14. 9. I18N and XML
    1. Internationalization (I18N)
      1. Time for Action — Using the I18N Support
        1. What Just Happened?
    2. Creating XML Documents
      1. Time for Action — Creating an XML Document
        1. What Just Happened?
    3. Parse XML Documents
      1. Time for Action — Parsing XML on the Client
        1. What Just Happened?
    4. Summary
  15. 10. Deployment
    1. Manual Deployment in Tomcat
      1. Time for Action — Deploying a GWT Application
        1. What Just Happened?
    2. Automated Deployment Using Ant
      1. Time for Action — Creating the Ant Build File
        1. What Just Happened?
    3. Deployment from Eclipse
      1. Time for Action — Running Ant from Eclipse
        1. What Just Happened?
    4. Summary
  16. A. Running the Samples