• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Empty browser with GWT Development mode

 
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!
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
 
Yup, yup, yup. Tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!