Google Web Toolkit GWT Java AJAX Programming


Google Web Toolkit GWT Java AJAX Programming
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$13.50
save 50%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

 

Book Details

Language : English
Paperback : 248 pages [ 235mm x 191mm ]
Release Date : February 2007
ISBN : 1847191002
ISBN 13 : 9781847191007
Author(s) : Prabhakar Chaganti
Topics and Technologies : All Books, Google, Web Development, AJAX, Java, Web Development


Table of Contents

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

Prabhakar Chaganti

Prabhakar Chaganti is the founder and CTO of Ylastic, a start-up that is building a single unified interface to architect, manage, and monitor a user's entire AWS Cloud computing environment: EC2, S3, RDS, AutoScaling, ELB, Cloudwatch, SQS, and SimpleDB. He is the author of Xen Virtualization and GWT Java AJAX Programming, and is also the winner of the community choice award for the most innovative virtual appliance in the VMware Global Virtual Appliance Challenge. He hangs out on Twitter as @pchaganti.

Read about his tips on time management...

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 12 submitted: last submission 02 Jan 2012

Errata type: Typo | Page number: 0 | Errata date: 03 Dec 09

The following commands in steps 1 & 2 has wrong path specified. (The drive letters should be 'C' instead of 'E' according to the screenshot below.) projectCreator.cmd -out E:\GWTBook\HelloGWT -eclipse HelloGWT applicationCreator.cmd -out E:\GWTBook\HelloGWT -eclipse HelloGWT -overwrite com.packtpub.gwtbook.hellogwt.client.HelloGWT

 

Errata type: Command Line | Page number: 18 | Errata date: 20 Mar 07

Replace -out \GWTBook\HelloGWT com.packtpub.gwtbook.HellowGWT.client.HelloGWT with -out E:\GWTBook\HelloGWT com.packtpub.gwtbook.hellogwt.client.HelloGWT

 

Errata type: Typo | Page number: 25 | Errata date: 18 Apr 07

In step #3, Replace "Define a RandomQuoteServiceImpl class that extends RemoteService..." with "Define a RandomQuoteServiceImpl class that extends RemoteServiceServlet..."

 

Errata type: Typo | Page number: 27 | Errata date: 04 Dec 07

In step 6, replace "quoteLabel" with ".quoteLabel" - (note the dot)

 

Errata type: Typo | Page number: 37 | Errata date: 8 Mar 07

TReplace "inr" in the last line of the page (in the code) with "int"

 

Errata type: Typo | Page number: 37 | Errata date: 16 Apr 07

Replace public void isPrimeNumber(int numberToVerify, AsyncCallbackcallback); with public void isPrimeNumber(int numberToVerify, AsyncCallback callback);

 

Errata type: Typo | Page number: 37 | Errata date: 30 Apr 07

Replace public void isPrimeNumber(int numberToVerify, AsyncCallbackcallback); by public void isPrimeNumber(int numberToVerify, AsyncCallback callback);

 

Errata type: Typo | Page number: 43 | Errata date: 30 Apr 07

Replace "primesService.isPrimeNumber(Integer parseInt(primeNumber.getText()), callback);" by "primesService.isPrimeNumber( Integer.parseInt(primeNumber.getText()), callback);"

 

Errata type: Typo | Page number: 43 | Errata date: 17 May 07

Replace Window.alert("Yes, "+ primeNumber.getText() + "' is a prime number."); with Window.alert("Yes, "+ primeNumber.getText() + "is a prime number.");

 

Errata type: Typo | Page number: 43 | Errata date: 17 May 07

Replace final PrimesServiceAsync primesService = (PrimesServiceAsync) GWT GWT.create(PrimesService.class); with final PrimesServiceAsync primesService = (PrimesServiceAsync) GWT.create(PrimesService.class);

 

Errata type: Broken code | Page number: 51 | Errata date: 08 Mar 07

Replace for (int i = 0; i < liveResultsPanel.getRowCount(); i++) { liveResultsPanel.removeRow (i); } with liveResultsPanel.removeRow(0); for (int i = 1; i < liveResultsPanel.getRowCount(); i++) { liveResultsPanel.removeRow (i); }

 

Errata type: Broken code | Page number: 76 | Errata date: 08 Mar 07

Add "Collections.sort(sortColumnValues);" just after "sortDirection = 0;"

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Google Web Toolkit GWT Java AJAX Programming +    IBM Cognos TM1 Cookbook =
50% Off
the second eBook
Price for both: $49.20

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

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.

Read the full Google Web Toolkit GWT Java AJAX Programming Table of Contents.

Approach

Each chapter covers a series of practical tasks, showing how to achieve a particular useful result – and then learn how it works so that you can apply your knowledge to your own unique situation.

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

 

 

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software