Skip to content

Upgrading to GWT 2

I recently had the pleasure of upgrading from GWT 1.5.3 to GWT 2.0.  The client has a variety of GWT applications–some standalone widgets that integrate into an existing site, an application written with GWT look and feel, and an application written with the GWT-EXT library.

The upgrade to GWT 2.0 was much less painful than I thought it would be.

Even code that was written for GWT 1.0 (the mortgage calculator, written back in 2006) compiled cleanly (well, plenty of warnings, but no loss of functionality).  Classes that have been deprecated (some for good reason; hello HTTPRequest, I’m looking at you) have not disappeared.  I’m not saying that the code I wrote for GWT 1.0 shouldn’t be rewritten, just that GWT hasn’t forced me to do so.  Also, other than changing some switches to the command line compiler, the ant script used to compile the GWT modules didn’t have to change at all.

Hosted mode was a different story.  I never really spent a ton of time in hosted (err, dev) mode, but had it working in that past.  Now, I wanted to get it working fully because of the tremendous productivity gains possible–no minute long compile cycle to pull my attention away from my code.  And the fact that you can run and debug in eclipse in more than just one browser is really attractive.  Since I’d never really had it working fully, there wasn’t a lot of upgrade work; it was more like starting from the beginning.  However, I was unable to use the internal jetty server.  Again, my use case is atypical, with a lot of JSON and JSONP requests for data.

Big pluses for GWT 2.0, right off the bat:

I haven’t yet looked into Speed Tracer or some of the updated widgets (I’d really love to toss the gwt-widgets lightbox we use in favor of the GWT standard PopupPanel).  There’s also the tremendous benefit of being on the modern version of any platform–it is easier to get support in forums and in other venues.

3 thoughts on “Upgrading to GWT 2

  1. Nirmal says:

    Hi Dan,
    I have an application written with GWT-Ext and GWT1.4.
    I am investigaing possibility to migrate to GWT2.x

    Did you have success with your GWT-Ext application?
    Would be great if you could share your migration experiences – caveats/problems/solutions for the GWT-Ext application.

    Regards,
    Nirmal

  2. rakesh says:

    Hi Dan;
    can u let me know the process of migration from gwt1.5 to gwt2.0.I am using the eclipse IDE.

  3. moore says:

    As I remember, I upgraded to 1.7 first, then to 2.0. I also read the release notes and followed them. When I did the upgrade we didn’t do much with hosted/development mode, but I know that has changed a lot. You probably want to read all the release notes: http://code.google.com/webtoolkit/release-notes.html

Comments are closed.