| Author |
GWT Project just shows a blank page if empty body tag is used
|
Ron Meyer
Greenhorn
Joined: Jun 26, 2012
Posts: 7
|
|
Hi,
i've got a problem with my test GWT Project,
if i remove all static content from within the body tag, nothing of the rootpanel gets drawn.
It works fine with the static content present in the base html file though.
I might add, that my rootpanel contains a menubar, which is not drawn if the 2 default project
items in the static html file are removed.
(In the below listing, the part between the ' =========================================================').
It seems that GWT javascript does not replace the documents content without those fields.
If its empty, as suggested for a complete dynamic app, the page is blank. By looking at the Page Source, its exactly the content of the static html file.
Can anyone explain what i'm missing here, or how to trigger GWT 2.4.0 to work correctly on an empty body?
Thanks
|
 |
Ron Meyer
Greenhorn
Joined: Jun 26, 2012
Posts: 7
|
|
|
anyone, please?
|
 |
Jinal Prakas Shah
Ranch Hand
Joined: Jun 20, 2012
Posts: 39
|
|
I would say instead on an empty body it is always advisable to display the content using the ID.
For example
.
Then in body use
I think this should do it.
|
 |
Ron Meyer
Greenhorn
Joined: Jun 26, 2012
Posts: 7
|
|
Thank you very much - that helped indeed.
But I think there is a Bug in GWT because the sample code says using empty Body and empty .get() can be used.
In fact it only worked by using the div with an id, as you pointed out.
I now use:
and
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 915
|
|
Mad Marty wrote:But I think there is a Bug in GWT because the sample code says using empty Body and empty .get() can be used.
There is no Bug in GWT....
try empty Body as :
And in Module load:
It should work fine. Infact in all of my projects I have used the same to add the Widgets.
|
My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
|
 |
 |
|
|
subject: GWT Project just shows a blank page if empty body tag is used
|
|
|