This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
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.
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
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
About the Author xxi
Chapter 1: Developing Your Application 1
Rich Internet Applications 1
Advantages of GWT 4
Software Methodologies to Apply 5
Chapter 2: Getting Started with GWT 2 9
Why Use GWT? 9
The GWT Components 12
Setting Up GWT 17
Chapter 3: Understanding Projects and Development 21
Creating a Project 21
Project Structure 23
Running Your Application: Development Mode 27
Chapter 4: Working with Browsers 31
The Back Button Problem 31
Detecting the User’s Browser 43
Chapter 5: Programming the User Interface 55
Thinking About UI Patterns 55
Implementing MVP 59
Some Extensions 67
Declarative UI 69
Chapter 6: Communicating with Your Server 77
Introduction to RPC 77
RPC Patterns of Usage 84
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
Chapter 9: Adding APIs 157
A Weather Vane 157
Dashboard Visualizations 162
Working with Maps 168
Chapter 10: Working with Servers 177
The Challenges to Meet 177
Stateless Versus Stateful Servers 183
Common Operations 185
Chapter 11: Moving Around Files 195
Uploading Files 195
Downloading Files 204
Chapter 12: Internationalization and Localization 211
Internationalization (i18n) 211
Localization (l10n) 223
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
Chapter 14: Optimizing for Application Speed 259
Design Patterns for Speed 259
Speed Measurement Tools 277
Chapter 15: Deploying Your Application 287
Code Splitting 291