Skip to Content
GWT in Action
book

GWT in Action

by Adam Tacy, Robert Hanson
May 2007
Intermediate to advanced
632 pages
15h 7m
English
Manning Publications

Overview

NEWER EDITION AVAILABLE

GWT in Action, Second Edition is now available. An eBook of this older edition is included at no additional cost when you buy the revised edition!


The Web is experiencing a new growth with an emphasis on rich, web-based applications. These applications can be difficult to build because they rely on JavaScript, which lacks the sophisticated object-oriented structures and static typing of Java, they are tricky to debug, and they require you to manage numerous browser inconsistencies.

The Google Web Toolkit (GWT) is a new technology from Google that automatically translates Java into JavaScript, making Ajax applications easier to code and deploy. GWT in Action is a comprehensive tutorial for Java developers interested in building the next generation of rich, web-based applications. This book was written by Robert Hanson, creator of the popular GWT Widget Library, and Adam Tacy, a major contributor to the GWT Widget Library.



About the Technology

In May of 2006 Google released the Google Web Toolkit. GWT enables developers to create Ajax applications in Java. With GWT, you can build your applications using a real object-oriented language and take advantage of Java tools like Eclipse that are already available. Instead of trying to bring tool support to Ajax, Google brought Ajax to a place where the tools already existed.



About the Book

GWT in Action shows you how to take advantage of these exciting new tools. This clearly-written book is packed with hands-on GWT examples. You'll absorb the GWT philosophy as you build your first working GWT application.

The book begins by exploring the main features of GWT, including

  • Compiling Java to JavaScript, the magic that really defines GWT
  • Building client-side components
  • Convenient JUnit integration and testing
  • Interacting with JavaScript and existing JavaScript libraries
  • Internationalization

You'll also see how GWT compares to other toolkits.

GWT in Action shows you how to set up your development environment, use and create widgets, communicate with the server, and much more. Readers will follow an example running throughout the book and quickly master the basics of GWT: widgets, panels, and event handling. The book covers the full development cycle, from setting up your development environment, to building the application, then deploying it to the web server. The entire core GWT library is discussed, with details and examples on how it can be extended.

You'll cover:

  • Testing, debugging, and deploying GWT Applications
  • Communicating with GWT-RPC
  • Examining client-side RPC architecture
  • Alternative RPC tools: HTTPRequest, RequestBuilder, and FormPanel
  • Achieving interoperability in GWT with JavaScript Object Notation (JSON)
  • Making your GWT application flexible and supportable

GWT helps you make the most of Ajax in your web applications and GWT in Action helps you get more out of GWT.



What's Inside
  • Comprehensive GWT tutorial
  • Build a full-scale GWT application
  • Interacting with the server using GWT-RPC, JSON, and other tools
  • Building, testing, and deploying GWT applications


About the Reader


About the Authors

Robert Hanson is a US-based senior Internet engineer and creator of the popular open source GWT Widget Library. Robert also maintains a blog at http://roberthanson.blogspot.com where he talks about GWT and other topics relating to the industry.

Adam Tacy is a consultant working for WM- Data in the Nordics and a contributor to the GWT Widget Library project.



Quotes
... impressive quality and thoroughness. Wonderful!
- Bernard Farrell, Software Architect, Kronos Inc.

How to 'think in GWT'. The code: concise, efficient, thorough, and plentiful.
- Scott Stirling, Senior Consultant at USi and AT&T Company

Perfect for Java developers struggling with JavaScript.
- Carlo Gottiglieri, Java Developer, Sytel-Reply

A real nitty-gritty tutorial on the rich features of GWT.
- Andrew Grothe, COO Eliptic Webwise, Inc.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

GWT in Practice

GWT in Practice

Charlie Collins, Robert Cooper
GWT in Action, Second Edition

GWT in Action, Second Edition

Robert Hanson, Adam Tacy, Jason Essington, Anna Tokke

Publisher Resources

ISBN: 9781933988238Publisher SupportOtherPublisher WebsitePurchase Link