Home > Store

Google Web Toolkit Applications

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

Google Web Toolkit Applications

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2008
  • Dimensions: 7" x 9-1/4"
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-50196-9
  • ISBN-13: 978-0-321-50196-7

“Ryan clearly understands the GWT value proposition and how GWT integrates into a diverse web technology stack–and not just in a theoretical way. With the popularity of gpokr.com and kdice.com, Ryan can speak with the authority of concrete success.”

Bruce Johnson, creator of Google Web Toolkit


“This book distinguishes itself from other books on GWT in that it walks through the entire process of building several nontrivial GWT applications, not the toy applications that most books present.”

R. Mark Volkmann, Object Computing, Inc.


Google™ Web Toolkit Applications is an excellent resource for any GWT developer. Solutions to challenges commonly encountered in GWT are presented through the design and development of actual applications. The applications developed throughout the text demonstrate best practices from simple UI design all the way to custom code generation, and are presented with little pretext about the amount of Java knowledge a given developer may have. Advanced concepts are not withheld but are presented in a way that will be understood by both novice and seasoned developers alike. Good application development practices and proper Model View Controller design is reinforced throughout the book, nearly guaranteeing that the reader will come away a better programmer. “

Jason Essington, Senior Web/Java Engineer, Green River Computing


“Dewsbury’s Google™ Web Toolkit Applications is a book for both experts and beginner programmers who want to discover this open source Java software development framework, as well as write Ajax applications. A very detailed book!”

Massimo Nardone, Advisory IT Security Architect

Accelerate and Simplify Ajax Development with Google Web Toolkit


Get the edge you need to deliver exceptional user experiences with Google™ Web Toolkit Applications, a guidebook that provides web developers with core information and instructions for creating rich web applications. Whether you’re a developer who needs to build a high-performance front end for Java, PHP, or Ruby applications, or to integrate with external web services, this resource from expert Google Web Toolkit (GWT) developer Ryan Dewsbury delivers the in-depth coverage you’ll need.


In this valuable book, insider Ryan Dewsbury provides instructions for using the robust tool set and gets you on your way to creating first-class web applications by providing a comprehensive overview of GWT technology. In addition, he shares his “in-the-trenches” insights on


  • Building elegant and responsive user interfaces with Cascading Style Sheets and GWT’s Widgets and Panels

  • Creating seamless user experiences through asynchronous communication with HTTP, REST, JSON/JSONP, and RPC Interoperating with web standards–such as XML, RSS, and Atom–and web services–such as Google Maps, Amazon Books, Yahoo! Search, Flickr, and Blogger

  • Overcoming browser security restrictions, such as HTTP’s two-connection limit and the Same-Origin policy

  • Accelerating development, using software engineering, code generation, internationalization, application patterns, and Java tools

  • Deploying for optimal performance with resource compression and caching

  • Building five non-trivial applications: a gadget application with a rich drag-and-drop interface, a multi-search application that makes requests to many search engines, a blog editor application for managing entries across multiple blogs, a web-based instant messenger, and a database manager for a traditional web page

This practical guide to GWT introduces you to the technology; provides techniques, tips, and examples; and puts you on the road to delivering top-notch user experiences for your web applications.

Downloads

Source Code

Download the code for the book

Extras

Related Articles

Content Providers: Android's Data Sharing Mechanisms

Five Faves with Ryan Dewsbury

Author's Site

Please visit the author's website at gwtapps.com and www.rdews.com

See the First Safari “Search This Book” Widget on Ryan's Sites
PTG and Safari Books Online have collaborated to launch a beta release of a "Search This Book" widget for integration into the websites of technical book authors. The widget enhances the experience for visitors by enabling them to go beyond the book description and to locate relevant content from within the book by conducting full-text searches using the widget. Read the announcement.

Sample Content

Online Sample Chapter

Software Engineering for Ajax Using the Google Web Toolkit

Downloadable Sample Chapter

Download the chapter

Table of Contents

Preface xvii

About the Author xxiii


Part I: Understanding the Google Web Toolkit 1


Chapter 1: First Steps with the Google Web Toolkit 3

The Emergence of Ajax 3

Rethinking Web Applications 5

Software Engineering for Ajax 8

Evaluating Your Background 11

The Importance of Application Development Skills 14

A Quick Tutorial 16

Overview of Toolkit Packages 30

Overview of GWT Applications 34

Summary 36


Chapter 2: User Interface Library Overview 37

Static Widgets 38

Form Widgets 47

Complex Widgets 63

Simple Layout Panels 70

Complex Layout Panels 80

Simple Container Panels 84

Complex Container Panels 87

User Interface Framework Glue 95

Summary 103


Chapter 3: Server Integration Techniques 105

Basic Server Integration Techniques 105

Using Data Format Libraries 117

Third-Party Server Integration 125

Advanced Server Integration Techniques 128

Summary 137


Chapter 4: Software Engineering for Ajax 139

Setting Up the Development Environment 139

Adding Projects to Eclipse 145

Writing Java Code in Eclipse 149

Debugging in Eclipse 158

Organizing Your Application Structure 164

Testing Applications 168

Building and Sharing Modules 180

Deploying Applications 183

Summary 190


Chapter 5: Using the Toolkit Effectively 191

Using Asynchronous Programming 191

Handling the Back Button 197

Creating Elegant Interfaces with CSS 200

Extending the Toolkit 212

Internationalizing Applications 226

Generating Code 235

Improving Performance 242

Summary 251


Part II: Rich Web Applications by Example 253


Chapter 6: Gadget Desktop Application 255

Using the Container Application Pattern 256

Designing the Model 257

Building a Columned Container Interface 264

Putting Gadgets in the View 274

Creating Drag-and-Drop Gadgets 283

Cleaning Up User Interfaces with CSS 290

Adding Persistency 300

Using Other JavaScript Libraries 309

Summary 318


Chapter 7: Multi-Search Application 319

Using the Aggregator Application Pattern 319

Multi-Search Design 321

The Model 322

The View 324

The Controller 331

Importing Structured Data Formats 334

Integrating with Yahoo! Search 340

Integrating with Google Base 344

Integrating with Flickr Search 348

Integrating with Amazon Search 354

Summary 358


Chapter 8: Blog Editor Application 361

Using the Workspace Application Pattern 361

Building a Web Service Client 363

Blog Editor Design 365

The Model 365

Building a Multiple Document View 367

Adding Rich Text Editing 381

The LoadingPanel Widget 386

The TitleCommandBar Widget 388

Designing the Application Controller 390

Building an HTTP Proxy Servlet 392

Integrating with the Blogger API 401

Summary 421


Chapter 9: Instant Messenger Application 423

Using the Collaborator Application Pattern 423

Instant Messenger Design 425

The Model 426

Building a Complementary Interface 429

The Controller Overview 447

Using GWT-RPC 450

Connecting to the Server 456

Adding RPC Events 458

The Instant Messenger Server 465

Using Server-Side Advanced IO 470

Summary 478


Chapter 10: Database Editor Application 479

Using the Manager Application Pattern 480

Designing the Model 482

Using Asynchronous Data Access Objects 485

Building a Two-Paned Editor Interface 488

Server Integration Overview 507

Writing a Generic GWT Code Generator 510

Integrating with Action-Based PHP Scripts 522

Integrating with a RESTful Ruby on Rails Application 530

Integrating with a GWT-RPC Servlet 542

Summary 554


Index 555

Preface

Download the preface

Index

Download the index

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020