GWT Community Updates

Posted by Sumit Chandel, Developer Programs Engineer - Thursday, April 30, 2009 at 9:27:00 AM

Community announcements

Need a diagramming component in your GWT app? Now you can have one, thanks to the gwt-connectors project developed by Robert Waszkowski. The gwt-connectors project, which uses Fred Sauer's gwt-dnd, allows you to create components, drag them around, connect them together, and then drag some more (with connectors redrawn appropriately). It's really quite fun, you should give it a try.

HtmlUnit 2.5 released: For many, using JUnit TestCase and GWTTestCases to test their GWT applications is enough to sleep easy at night. However, in some cases, you want to test app navigtation flows in an automated way. For these cases, HtmlUnit comes to save the day. The HtmlUnit framework allows you to write tests that navigate through your application, fill forms, access attributes and values and so forth,  and includes support for GWT.

A SimpleGesture goes a long way: A developer at IT Mill Toolkit decided to use his 10% time to build something really neat - a gesture-recognizing widget. Using SimpleGesture, you can capture mouse gestures in a given widget and trigger an associated action. You should give the demo a try if you want to see it in action, and look up the source code if you want to code it into your own applications. It turns out that this widget also works quite well with a Wiimote.

More fun stuff

Google I/O: The Google I/O website has been updated with new sessionsspeakers  and developer sandbox participants . It will be a great event for those who want to learn the latest about Google developer products or who want to mingle with other developers who are in the field and have built applications using Google technologies. We're hoping to see you there!

Introducing GWT 1.6 and friends

Posted by Bruce Johnson - Tuesday, April 07, 2009 at 3:31:00 PM

Starting today, there is a simpler way to use the JavaTM language to develop and deploy world-scalable web applications. We are very happy to announce today:

What does this mean for you? It is easier than ever to create sophisticated web applications entirely in the Java language with Google Web Toolkit while working productively in Eclipse. And the moment you're finished, with only a few button clicks you can upload and publish your application to the world on App Engine.

In GWT 1.6, we've tried to make common tasks simpler while making it possible to do even more advanced things. If you're brand new to GWT, some of this is going to sound like gibberish, so you'll also want to take a look at the Product Overview as a gentler introduction.

Direct support for war output and related tools

  • GWT 1.6 changes the conventions for project organization to center on the standard Java web archive deployment structure. This new war support makes it easier to introduce GWT modules into existing web applications. It also makes GWT development more flexible by allowing hosted mode to work easily with any standard servlet container. 
  • In conjunction, there is a new webAppCreator tool which replaces the older projectCreator and applicationCreator tools. It is a unified, war-aware tool that can quickly create a working GWT module, configuration files, source files, and an ant build file that you can use as a starting point for your own code.
  • And, of course, it's pretty easy to create a war directory layout that you can upload to App Engine.

Hosted mode and compiler enhancements

  • Hosted mode has been enhanced to take advantage of the new war-centric project structure to provide additional conveniences. For example, the new "Restart Server" button reloads server-side code without you having to restart your debugger, which can save you time when you're developing RPC services. Also, for you GWT experts out there using hosted mode with your own custom servers — if you know what "-noserver" is, I'm talking to you — you'll be glad to know that hosted mode integration "just works" now; generated resources such as bundled image files are automatically recreated when you refresh the hosted browser. This, too, can help speed up your development cycle.
  • Hosted mode has also been modified to work smoothly with EMMA's offline instrumentation, so that you can easily generate code coverage reports. If you're an Eclipse user, in addition to using the new Google Plugin for Eclipse, you should also look at EclEmma, which makes it easy to enable code coverage for any launch configuration. 
  • Finally, the GWT compiler has gone parallel. It can compile multiple output permutations in parallel using the new -localWorkers flag, which can speed up web mode compiles noticeably on multi-core machines. In more elaborate build systems, it is also possible now to do parallel distributed compiles using the new compiler lifecycle classes Precompile, CompilePerms, and Link.

New widgets and a shiny new approach to event handling

  • A big change that you will surely notice is GWT's overhauled event handling. The new Handler pattern for managing widget events is easier to understand and more succinct than in previous releases. Widget writers can also easily create their own custom events.
  • The customizable and internationalized DatePicker is now a standard widget, and the new LazyPanel helps you speed up your code by delaying the creation of widgets until they're actually needed.
  • There's also a new API for triggering browser native events programmatically, which is a real boon for unit testing. 

As usual, there are many more improvements than we can list above. The issue tracker has the full list of changes. We hope that these new features in GWT 1.6 will seem like only the beginning, though, as you start to using GWT alongside the new Google Plugin for Eclipse and deploying your code on App Engine. There's lots more to come on how these technologies work together to help you do cool new stuff faster.

Last but not least, the GWT team will be at Google I/O on May 27-28, giving in-depth sessions on GWT and eager to hear your feedback on these new features. We hope you'll join us.

Download Google Web Toolkit 1.6

Google Plugin for Eclipse™ — Peanut Butter to Eclipse's Chocolate

Posted by Miguel Mendez - at 2:27:00 PM

Eclipse™ is a delicious Java™ IDE. However, developers using it to create Google Web Toolkit (and now Google App Engine for Java) web applications have found themselves wanting better integration.

That's why we are very happy to announce the first release of the Google Plugin for Eclipse. Not only does the plugin make it easier to work with App Engine for Java and GWT; it also makes projects using both easier. A few key features:

New Web Application Wizard
Quickly create web applications that use GWT and/or App Engine. Your new application is fully configured and ready to go.

Run/Debug Web Application
With a single click, you can run or debug your web application locally. No more command-line headaches!

Google App Engine for Java
Deploying your application to the cloud is easy with the deploy wizard...

As-you-type validation ensures that your code is compatible with App Engine.

Google Web Toolkit
We've enhanced Eclipse's Java environment to integrate seamlessly with GWT:

  • Recognition of inline JavaScript (JSNI): syntax highlighting, auto-indenting, Java Search and Refactoring integration
  • GWT compiler shortcuts and configuration UI
  • Wizards to create entry points, modules and HTML pages

Ready to dig in?

GWT Community Updates

Posted by Sumit Chandel, Developer Programs Engineer - Thursday, April 02, 2009 at 10:02:00 AM

It's about that time again.  We've had a lot of activity in the community since the last update that we'd like to share. Check them out below:

Community announcements

Spreading the word: The community is lucky to have a number of active members who blog, present and contribute to GWT. They are often a great resource for more news about GWT than can be tracked in our own single blog. Check out some of these GWT gems below:

  • onGWT: maintained by Didier Girard, it's constantly updated with tidbits of news relating to GWT.
  • Roughian Examples : Ian Bambury has created a site that gives a different take on how GWT components fit together. There is also a free email course available!

IT Mill Toolkit 5.3.0 production release ready: The folks at IT Mill have worked hard to create IT Mill Toolkit - a set of technologies and tools that allow you to develop Ajax applications using Google Web Toolkit based, server-side binded widgets. Check out their latest production release announcement for more details.

GWT Articles section revamped: We've been working on updating and enriching articles on various GWT topics. The latest addition treats the topic of testing methodology using GWT. Please check out the new articles and let us know what you think of them. Also, if there is a topic that you are an expert on that you would like to write about, get in touch with us.

More fun stuff

Google I/O: Google's developer conference is just around the corner. If you're planning on attending, you're still in time for early bird registration prices! There are going to be some great GWT sessions presented at this year's conference that you won't want to miss. We're hoping to see you there!