Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Empty browser with GWT Development mode

 
Benny Konnysson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to GWT am currently working on the tutorials at https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/

I have a problem with the login function tutorial. In part 7, I get a problem when I'm asked to Launch default browser. A new tab opens in Chrome but the page stays blank. I tried to copy the whole source code from the tutorial to get it working but it's still blank.

The second tutorial, when I run as a web application, works though.

Any suggestions?

Thanks a lot!
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

1) Do you see any errors on your eclipse console?
2) What do you see if you right click on your browser page and select view source?
 
Benny Konnysson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your answer,

1) There are no errors or any other messages in the console.
2) When i view source, I see this:


 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
Can you show us your onModuleLoad()? (Please don't forget to UseCodeTags)
 
Benny Konnysson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry about the code tags, I thought I hade done it correctly. I will try again and if it is not correct, please tell me what is wrong.

So, the OnModleLoad() looks like this:
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you remove the explict calls to setSize and try?
If that doesnt work can you try adding something like
 
Benny Konnysson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried both your suggestions but I still have a blank, white page.

 
Benny Konnysson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why, but suddenly it is working. I thank you very much for your help!

Edit: It is working even when removing the
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Benny Konnysson wrote:I don't know why, but suddenly it is working.

To confess, neither do I
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic