When I try
RootPanel.get().add(mainPage);
the map appears in the page and everything is fine, but when I use
RootPanel.get("div_id").add(mainPage);
The map appears for half second and then disappear. I searched the forum but there is no clear answer for that.
Some details:
1- mainPage is an isntance of HLayout that has my project components.
2- I’m using GWT 1.6.4 and smartgwt 1.0b2.
3- I have the same result in Firefox and Safari (haven’t tried IE since I work on Mac)
Can anybody help please?
Thanks
Correction
Using:
RootPanel.get("div_id").add(mainPage);
or
RootPanel.get().add(mainPage);
makes that map to appear permanently and dont disappear if, and only if the html file doesn’t have any text or tags other than:
<body>
<div id="div_id"></div>
</body>
When I put
<body>
<h1>TEST SMARTGWT</h1>
<div id="div_id"></div>
</body>
The map shows up for a moment and disappears!!
Any logical interpretation for that?!
Some Info
I think that adding GWT components into Smartgwt is fine, but the reverse causes some weird behaviour.
I’m still stuck with that map problem and couldn’t solve it, any idea?