667514 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

Reviews Reviews Reviews Messages: 4 Messages: 4 Messages: 4 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Book: Google Web Toolkit Applications, Ryan Dewsbury

Posted by: Joseph Ottinger on January 08, 2008 DIGG
Google Web Toolkit, by Ryan Dewsbury, is an excellent book for those looking to use GWT to good advantage, covering most areas of GWT functionality in exceptional detail. It covers software engineering, server integration, custom component composition, CSS, and various methods of RPC via some good sample applications.

The first chapter walks through your first steps with GWT, including defining programmer backgrounds and the challenges associated with them - for example, if you're a traditional web application developer, the book suggests that you're in for a change in user interface paradigm, closer to AWT. Desktop application developers will have the smoothest transition, although they'll have to get used to working within the browser-based sandbox.

The second chapter gives an overview of the user interface library: static widgets, form widgets, complex widgets (trees and menubars), layout panels, container panels, and event interfaces. In general, it covers the widgets well, discussing various points about them one might not expect - for example, the PushButton documentation is quite detailed, showing the hierarchy of images one can replace on display, and showing CSS styles. The RichTextArea discussion is also quite good.

However, the FileUpload widget discussion is lacking - it says that FileUpload requires a FormPanel in order to work (which is true) and promises a deeper discussion when FormPanel is documented - but FormPanel's discussion focuses on the way to manage the "normal" widgets being submitted, and doesn't cover file uploads at all. Considering that file uploads are probably the trickiest fields to manage from a web page, this is rather disappointing.

The third chapter is on server integration techniques, including the use of traditional server-side technologies such as PHP or Ruby. XML and JSON are discussed well, in addition to documentation of HTTP proxies, calling third-party services, and stateful services.

The fourth chapter is on software engineering: installing a JDK, debugging GWT, using JUnit, sharing modules (i.e., extending GWT with custom components), and deploying GWT applications to servlet containers. This is a very useful chapter, although it seems out of place somewhat. If it were the second chapter, where it might fit more logically, it would be too much information at the beginning of the learning curve; however, here, it feels like it covers information that the developer should already have in hand, given the depth of the content provided in the previous chapters. That said, it contains crucial information on using GWT extensions (also covered in chapter five) and testing.

Chapter five, "Using the toolkit effectively," is another excellent chapter. It discusses elegant user interfaces with CSS, toolkit extension, internationalization, generating code, and performance improvement. It'd be really nice if more framework books would include a "best practices" section like this, to try to fill in the holes beyond "here's what it can do" with "here's what you should do."

The code generation discussion is fascinating. One strength of GWT is that it combines multiple images into a single image, breaking them into pieces on the client side, to reduce server traffic (i.e., one HTTP request for fifteen images, instead of fifteen requests.) The "generating code" section discusses how this is done, and it also shows you how you can write your own generators - including a short example in this chapter and a much longer, in-depth example in the database editor example at the end of the book.

Chapters six through ten contain example applications: a gadget desktop application, similar to http://igoogle.com, including drag and drop, stored user preferences, use of Google Gears and other storage mechanisms. A multi-search application - which submits search requests to multiple search engines - is next, including integration with Yahoo!, Google, and Flickr.

Chapter eight is a blog editor application, which provides a workspace application - similar to Google Docs - that can create new blog entries for multiple blogs in one workspace. This chapter also discusses the use of HTTP proxy servlets, to provide calls to server applications that the browser cannot connect to directly (as a result of a Javascript sandbox.) Lastly, it shows the use of ATOM to publish entries.

Chapter nine is an instant messenger application, building a collaborative application with asynchronous events - including the ability to update the messages without polling. It then goes one step further, by documenting the use of COMET (server push) on Tomcat, and continuations on Jetty. It'd be nice if there was a standard mechanism for COMET in servlet containers - but this is a start, and it's much welcomed.

Chapter ten provides a database editor for a fictional web site similar to Digg, including PHP and Ruby integration, and a very indepth discussion of using generators to make management very easy. This sample is probably the most esoteric of the set, but it's also the most impressive - the information here is presented concisely, and replicating the functionality would be difficult without the techniques presented here.

Altogether, Google Web Toolkit Applications is an excellent book, well worth the list price of $49.99 (USD) if you're doing any serious GWT development. It's well written, very much in depth, and shows application patterns that will be very useful for anyone using GWT, in many cases showing concepts that are very difficult to find elsewhere. It's also available as an eBook for $39.99 USD, if that interests you instead - and the print version offers a free trial Safari subscription.

Threaded replies

·  Book: Google Web Toolkit Applications, Ryan Dewsbury by Joseph Ottinger on Tue Jan 08 09:03:58 EST 2008
  ·  Print version offers a free trial Safari subscription by Ramazan YILDIRIM on Thu Jan 10 10:03:40 EST 2008
    ·  Print version offers a free trial Safari subscription by Heather Fox on Wed Jan 16 13:17:10 EST 2008
  ·  Re: Book Review: Google Web Toolkit Applications by Gofhaone Taunyane on Fri Jan 11 09:36:04 EST 2008
  ·  Re: Book: Google Web Toolkit Applications, Ryan Dewsbury by Javier Sandino on Fri Jul 17 14:52:55 EDT 2009
  Message #244987 Post reply Post reply Post reply Go to top Go to top Go to top

Print version offers a free trial Safari subscription

Posted by: Ramazan YILDIRIM on January 10, 2008 in response to Message #244752
I have bought the print version of the book from informIT and it doesn't seem to offer a free trial Safari subscription?

FYI

Ramazan YILDIRIM

  Message #245095 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Book Review: Google Web Toolkit Applications

Posted by: Gofhaone Taunyane on January 11, 2008 in response to Message #244752
No disrespect but hopefully it will be better than GWT In Action which i could not finish, much as i tried. I had to switch to Flex which is actually quite good.

  Message #245315 Post reply Post reply Post reply Go to top Go to top Go to top

Print version offers a free trial Safari subscription

Posted by: Heather Fox on January 16, 2008 in response to Message #244987
I have bought the print version of the book from informIT and it doesn't seem to offer a free trial Safari subscription?

FYI

Ramazan YILDIRIM


To obtain your free Safari trial, go to: http://safari.informit.com/safarienabled and then enter the coupon code that is provided on the very last page of your print edition.

Thx, HFox
Prentice Hall Publicity
heather(dot)fox(at)pearson.com

  Message #312040 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Book: Google Web Toolkit Applications, Ryan Dewsbury

Posted by: Javier Sandino on July 17, 2009 in response to Message #244752
Hi Joseph:

it's been about a year and a half since you wrote this posting. The current GWT version is 1.7. I am new to GWT, but I've noticed that a lot of things have changed in the last couple of releases, so I wanted to know if you think is still a good idea to buy this book at this point in time.

I certainly don't want to buy the book and find out that most of the information in it is obsolete or not applicable to the current toolkit.

Thanks in advance for any feedback.

TheServerSide Application Server MatrixTheServerSide Application Server MatrixTheServerSide Application Server Matrix
Application Server Matrix The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews. A PDF version is also available.
About TheServerSide ReviewsAbout TheServerSide ReviewsAbout TheServerSide Reviews
Welcome to the reviews section on Enterprise Java Community! We are proud to provide the first independent, user-run repository for real world application servers! The community needs real world experiences with application servers, not marketing hype nor flamebait. Let us know what you think about the servers listed here feature by feature, how easy they are to work with, how good their tech support is, etc. Your comments will be read by many other developers / managers and will help educate people about application servers.

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map