Home > Store

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

Register your product to gain access to bonus material or receive a coupon.

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

eBook (Watermarked)

  • Your Price: $31.99
  • List Price: $39.99
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.


  • Copyright 2011
  • Edition: 1st
  • eBook (Watermarked)
  • ISBN-10: 0-13-265220-X
  • ISBN-13: 978-0-13-265220-9

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

Sample Content

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


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership