Feeds

Getting Google’s Web Toolkit going

If Google can, you can too

  • alert
  • submit to reddit

Providing a secure and efficient Helpdesk

Developers looking to build Ajax-style rich internet applications (RIA) are pretty much spoilt for choice at the moment. There are dozens of RIA tools and frameworks littering the development landscape, from those providing minimal sets of JavaScript libraries to heavyweight contenders such as Adobe’s Flex, Microsoft’s Silverlight and Google’s Web Toolkit (GWT). The Google offering, released under an Open Source licence, has quickly picked up a following by combining a wide range of useful and functional browser widgets and by using Java to drive the whole thing. Yep, that’s Java, not Javascript…

Basically GWT shields the Java programmer from the complexities of browser differences and having to learn Javascript. It means Java developers can use their existing server side or desktop development skills to create flexible, functional and rich Ajax applications (of the type popularised to a large extent by Google’s Gmail and Google Maps).

GWT In Action aims to explain to the GWT beginner how this magic is achieved and to show just what the framework is capable of. The first and most obvious point to make is that the book assumes a basic knowledge of Java. Despite what the authors would like to think, this isn’t really a book (or framework come to that), which would help if you don’t have a clue about Java. What it doesn’t assume, however, is a knowledge of GUI programming in Java, so there’s no need to sweat if you’ve never used Swing or SWT as these play no part in GWT.

The book is broadly structured into four parts, with the first part being an extended introduction that walks the reader through installation and running a sample app to creating, running and deploying your own simple application. It also discusses the Java to Javascript compiler that makes the whole thing possible, as well as touching on unit testing, debugging and IDE support in Eclipse. The next section focuses on building user interfaces, and has detailed chapters on the different widget and panels that are included in GWT, along with chapters on rolling your own. There is also a chapter on the JavaScript Native Interface (JSNI), which is the interface between Java and JavaScript and enables you to call code in one from the other.

The third part of the book moves on to more advanced topics, including RPC, interacting with JSON (JavaScript Object Notation), internationalisation and more. The final two chapters, which make up part four, look again at unit testing with Junit, deployment and a more detailed look at how GWT works under the covers. The latter chapter would have been more useful earlier in the book, but that’s a minor quibble really.

The core part of the book, which looks at building the UI, is structured around the building of a sample application – a Dashboard application which shows off both the built-in widgets and the custom widgets designed in the text. Certainly for a new developer this approach works well enough, though for those who’ve already mastered the basics there’s probably not much to be gained from this part of the book.

On the whole the book is fairly well written, though perhaps some pages could have been saved if the authors had assumed they were writing for Java developers rather than a broader audience.

GWT in Action

Verdict: A good introduction to GWT

Author: Robert Hanson and Adam Tacy

Publisher: Manning

ISBN: 1933988231

Media: Book

List Price: £35.99

Buy this book at Register Books at Reg Developer's special discounted price!

Internet Security Threat Report 2014

More from The Register

next story
Google+ goes TITSUP. But WHO knew? How long? Anyone ... Hello ...
Wobbly Gmail, Contacts, Calendar on the other hand ...
UNIX greybeards threaten Debian fork over systemd plan
'Veteran Unix Admins' fear desktop emphasis is betraying open source
Preview redux: Microsoft ships new Windows 10 build with 7,000 changes
Latest bleeding-edge bits borrow Action Center from Windows Phone
Microsoft promises Windows 10 will mean two-factor auth for all
Sneak peek at security features Redmond's baking into new OS
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
DEATH by PowerPoint: Microsoft warns of 0-day attack hidden in slides
Might put out patch in update, might chuck it out sooner
Redmond top man Satya Nadella: 'Microsoft LOVES Linux'
Open-source 'love' fairly runneth over at cloud event
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.