Saturday, April 11, 2009

Blank Page in GWT Hosted Mode and Your IE Friend

I've started playing with the recent release of GWT and got puzzled right away by a virgin-empty page. What puzzled me even more was that the sample applications, as well as the ones I created from scratch, were showing up fine in my default Firefox browser.

A while later I figured that blank page is GWT-preferred way of saying that something went wrong. Not too inspiring but that our dull reality. And you are welcome to correct me and point me to that elegant way to see where things break.

Having browsed through a myriad of "gwt hosted mode empty" search results, I was still blank-stared and the blank screen.

Then it dawned on me that GWT relies on IE (Misrosoft Internet Explorer) for hosted mode and I've recently started upgrading mine to the most recent version.

As you might have already learnt, IE upgrade is a milti-step process that requires several reboots of your machine. Judging by the error dialog that was popping up when I was selecting "About Internet Explorer" Help menu item, I was somewhere in the middle of my reboot sequence.

I rebooted my machine and made sure I got new and shiny IE 8 installed and working. Then I tried the GWT stuff again - everything worked as a charm.

The moral of the story... If you plan on using GWT on Windows, you have to be friends with IE no matter what relationship with Microsoft you have otherwise.

0 comments: