Free Sample
+ Collection

Google Web Toolkit GWT Java AJAX Programming

Starting
Prabhakar Chaganti

A practical book and eBook guide to Google Web Toolkit for creating AJAX applications with Java, fast.
$13.50
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847191007
Paperback248 pages

About This Book

  • 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
  • Read: Chapter 2 [PDF 505 KB] | Table of Contents | Slashdot Book Review
  • Also available to download immediately as an eBook

 

Who This Book Is For

Readers will need experience writing non-trivial applications using Java. Experience with developing web interfaces is useful, but knowledge of JavaScript and DHTML is not required GWT takes care of that!

Buy Google Web Toolkit GWT Java AJAX Programming

 

 

Table of Contents

Chapter 1: Getting Started
Introduction to GWT
Basic Download
Exploring the GWT Samples
GWT License
Summary
Chapter 2: Creating a New GWT Application
Generating a New Application
Generating a New Application with Eclipse Support
Creating a Random Quote AJAX Application
Running the Application in Hosted Mode
Running the Application in Web Mode
Summary
Chapter 3: Creating Services
Creating a Service Definition Interface
Creating an Asynchronous Service Definition Interface
Creating a Service Implementation
Consuming the Service
Summary
Chapter 4: Interactive Forms
Sample Application
Live Search
Password Strength Checker
Auto Form Fill
Sortable Tables
Dynamic Lists
Flickr-Style Editable Labels
Summary
Chapter 5: Responsive Complex Interfaces
Pageable Tables
Editable Tree Nodes
Log Spy
Sticky Notes
Jigsaw Puzzle
Summary
Chapter 6: Browser Effects with JSNI and JavaScript Libraries
What is JSNI?
Moo.Fx
Rico Rounded Corners
Rico Color Selector
Script.aculo.us Effects
Summary
Chapter 7: Custom Widgets
Calendar Widget
Weather Widget
Summary
Chapter 8: Unit Tests
Test a GWT Page
Test an Asynchronous Service
Test a GWT Page with an Asynchronous Service
Create and Run a Test Suite
Summary
Chapter 9: I18N and XML
Internationalization (I18N)
Creating XML Documents
Parse XML Documents
Summary
Chapter 10: Deployment
Manual Deployment in Tomcat
Automated Deployment Using Ant
Deployment from Eclipse
Summary

What You Will Learn

  • Set up an elegant GWT development environment in Eclipse
  • Create, test, debug and deploy GWT applications
  • Develop custom widgets – examples include a calendar and weather forecast widget
  • Internationalize your GWT applications
  • Create complex interfaces using grids, moveable elements, and more
  • Integrate GWT with Rico, Moo.fx and Script.aculo.us to create even more attractive UIs using JSNI

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.

Chapter-by-Chapter

Chapter 1 introduces GWT, the download and installation of GWT, and running its sample application.

Chapter 2 deals with the creation of a new GWT application from scratch, and using the Eclipse IDE with GWT projects, creating a new AJAX Random Quotes application, and running this new application.

Chapter 3 deals with an introduction to and overview of GWT asynchronous services, and creating a prime number service and geocoder service.

Chapter 4 deals with using GWT to build simple interactive user interfaces. The samples included in this chapter are live search, auto fillable forms, sortable tables, dynamic lists, and a flickr-style editable lable.

Chapter 5 introduces some of the more advanced features of GWT to build more complex user interfaces. The samples included in this chapter are pageable tables, editable tree nodes, a simple log spy, sticky notes, and a jigsaw puzzle.

Chapter 6 includes an introduction to JavaScript Native Interface (JSNI) and using it to wrap third-party JavaScript libraries like Moo.fx and Rico. it also includes using the gwt-widgets project and its support for the Script.aculo.us effects.

Chapter 7 deals with creating custom GWT widgets. The samples included in this chapter are a calendar widget and a weather widget.

Chapter 8 concerns itself with creating and running unit tests for GWT services and applications.

Chapter 9 sees us using Internationalization (I18N) and client-side XML support in GWT.

Chapter 10 includes the deployment of GWT applications using both Ant and Eclipse.

Authors

Read More