Essential GWT: Building for the Web with Google Web Toolkit 2

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Paperback)
  • All (10) from $1.99   
  • New (3) from $16.42   
  • Used (7) from $1.99   


With Google Web Toolkit, Java developers can build sophisticated Rich Internet Applications (RIAs) and complete Web sites using the powerful IDEs and tools they already use. Now, with GWT 2, Google Web Toolkit has become even more useful. Essential GWT shows how to use this latest version of GWT to create production solutions that combine superior style, performance, and interactivity with exceptional quality and maintainability.

Federico Kereki quickly reviews the basics and then introduces intermediate and advanced GWT skills, covering issues ranging from organizing projects to compiling and deploying final code. Throughout, he focuses on best-practice methodologies and design patterns. For example, you’ll learn how to use the MVP (model-view-presenter) pattern to improve application design and support automated testing for agile development.

Kereki illuminates each concept with realistic code examples that help developers jump-start their projects and get great results more quickly. Working with the latest versions of open source tools such as Eclipse, Subversion, Apache, Tomcat, and MySQL, he demonstrates exactly how GWT fits into real Web development environments. Coverage includes

  • Using the Google Plugin for Eclipse and the GWT Shell Script
  • Detecting and working with browsers—and solving the problems they cause
  • Building better user interfaces with the MVP pattern
  • Using APIs for visualization, mapping, weather data, and more
  • Internationalizing and localizing GWT code
  • Securing GWT applications with cryptography, hashing, and encryption
  • Testing with JUnit, Emma, GWTTestCase, Selenium, and Mock Objects
  • Deploying client-only and client-plus-server GWT applications
Read More Show Less

Product Details

  • ISBN-13: 9780321705143
  • Publisher: Addison-Wesley
  • Publication date: 8/17/2010
  • Series: Developer's Library Series
  • Pages: 322
  • Product dimensions: 7.00 (w) x 8.90 (h) x 0.80 (d)

Meet the Author

Federico Kereki is a systems engineer with more than twenty years of experience as a consultant, system developer, writer, and university professor. He has given talks on GWT at public conferences organized by Microsoft and TCS, and he used GWT to develop several company-wide Internet business systems. Kereki has taught and written texts for computer science courses at the Universidad de la República, Universidad ORT Uruguay, and the Instituto Universitario Autónomo del Sur. His current research interests include software quality, software engineering, and agile methodologies. He works extensively with both Linux and Windows and has been involved with open source for more than a decade. He currently resides, works, and teaches in Uruguay.
Read More Show Less

Table of Contents

Preface xv

Acknowledgments xix

About the Author xxi

Chapter 1: Developing Your Application 1

Rich Internet Applications 1

Advantages of GWT 4

Software Methodologies to Apply 5

Summary 8

Chapter 2: Getting Started with GWT 2 9

Why Use GWT? 9

The GWT Components 12

Setting Up GWT 17

Summary 20

Chapter 3: Understanding Projects and Development 21

Creating a Project 21

Project Structure 23

Running Your Application: Development Mode 27

Summary 30

Chapter 4: Working with Browsers 31

The Back Button Problem 31

Detecting the User’s Browser 43

Summary 53

Chapter 5: Programming the User Interface 55

Thinking About UI Patterns 55

Implementing MVP 59

Some Extensions 67

Declarative UI 69

Summary 76

Chapter 6: Communicating with Your Server 77

Introduction to RPC 77

RPC Patterns of Usage 84

Summary 118

Chapter 7: Communicating with Other Servers 119

The Same Origin Policy (SOP) Restriction 119

Our City Update Application 121

Receiving and Processing XML 125

Producing and Sending XML 131

Summary 137

Chapter 8: Mixing in JavaScript 139

JSNI 139

JSON 146


Summary 155

Chapter 9: Adding APIs 157

A Weather Vane 157

Dashboard Visualizations 162

Working with Maps 168

Summary 175

Chapter 10: Working with Servers 177

The Challenges to Meet 177

Cryptography 179

Stateless Versus Stateful Servers 183

Common Operations 185

Summary 193

Chapter 11: Moving Around Files 195

Uploading Files 195

Downloading Files 204

Summary 209

Chapter 12: Internationalization and Localization 211

Internationalization (i18n) 211

Localization (l10n) 223

Summary 227

Chapter 13: Testing Your GWT Application 229

Why Testing? 229

Unit Testing with JUnit 231

Integration Testing with GWTTestCase 247

Acceptance Testing with Selenium 253

Summary 257

Chapter 14: Optimizing for Application Speed 259

Design Patterns for Speed 259

Speed Measurement Tools 277

Summary 286

Chapter 15: Deploying Your Application 287

Compilation 287

Modules 289

Code Splitting 291

Deployment 297

Summary 300

Index 301

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 6 Customer Reviews
  • Posted August 30, 2010

    Great Book for Practical GWT Programing

    I found this book to be exactly what I needed. I was new to GWT and Java but a long time .NET and C programmer. I needed to build a portal with GWT. I had finished the nice tutorial of a Stock Watcher app on the GWT tutorial site and then was left with OK, how do I go about this now for the full fledged app? After a few false starts and reading other peoples source code I came across this book. It was perfect.

    I had read through quite a lot of other GWT books and my biggest gripe is that they are horribly out of date. GWT has many changes with the 2.X code releases and books written to the old 1.X versions just didn't hold up. This book gave me everything I could ask for:

    1) Relevant to GWT 2.x
    2) MVP design pattern. I was ready to move from MVC to MVP and this book used the MVP design pattern.
    3) I needed to design a secure portal. This book delivers that example.

    I am sure in this brief review I am missing many other good points but I found this book to be worth its weight in gold for a practical design example for someone wanting to go beyond a Hello World application in GWT.

    The one thing I recommend is that if you get the book then you should also obtain a copy of the source code. I did find sections of the book that were a bit hard for me to tie together but with the source code and the book side by side it was very easy to understand. In my opinion this book is not for someone who wants a linear experience of reading how to learn GWT programming step by step but is more geared to someone who already has basic GWT experience and now wants to proceed with building an actual useful application.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Posted October 14, 2010

    more from this reviewer

    Need to Read if you are Developing Web Based Apps

    This book goes into detail about developing using the Google Web Tool Kit. The GWT is fast becoming a platform for rich web based applications.
    Whether it is a plug-in for Google Apps or your own concept, this book will get you started.
    And you do not need to be a master programmer.
    The book covers many ares of interest and it is a great addition to my reference library.

    Was this review helpful? Yes  No   Report this review
  • Posted August 18, 2010

    Great Book

    It's a great book and was very usefull for my project, it a big help.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 18, 2010

    No text was provided for this review.

  • Anonymous

    Posted February 6, 2011

    No text was provided for this review.

  • Anonymous

    Posted July 17, 2011

    No text was provided for this review.

Sort by: Showing all of 6 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)