Thanks for this Thomas this has helped me narrow down my problem, but Im
still not sure why Im getting the error heres my HTML code:
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
style="position:absolute;width:0;height:0;border:0"></iframe>
TEST HARNESS<br>
<table id="registration_page">
<tbody>
<tr>
<td id="loadingcontainer">
Loading the Application, Please wait.....<br>
</td>
</tr>
<tr>
<td id="logincontainer">
</td>
</tr>
</tbody>
</table>
TEST HARNESS END
</body>
Heres my onmoduleLoad():
{
RootPanel.get("registration_page").setVisible(true);
RootPanel.get("logincontainer").add(new HTML(""+"LOGIN SCREEN"));
}
If I comment out the first line it works fine, and if I leave it as above I
get the error on the second line.
>From what you have said, Im guessing that the very act of using the
"setVisible" is making GWT think that the "registration_page" is now a GWT
widget and so it now wont let me add the new HTML to the "logincontainer"
which is a child of "registration_page", presumably because there is a
possibility that I could "setVisible(false)" and that would effectively
"kill" the "logincontainer"?!
Have I read this correct?
Again apologies to Vik for hijacking your thread, Im going to use my test
harness to try to recreate your issue in compensation, however I notice that
you seem to have defined a new JoinUsPopup class, and not included the code
for that, so its possible the problem is in the code for that class
Cheers,
J
On 24 February 2010 10:56, Thomas Broyer <[email protected]> wrote:
>
> On Feb 24, 10:50 am, John Denley <[email protected]> wrote:
> > Have you checked the "google development mode" tab (assuming you are
> using
> > eclipse) for uncaught exceptions?
> >
> > Im thinking specifically the "A widget that has an existing parent widget
> > may not be added to the detach list" which will just stop parts of your
> > screen from loading without any other obvious/external warning/error
> >
> > I seem to be getting that error all over the place when I try to use the
> > "RootPanel.get().add()" functionality, with no obviously good reason at
> the
> > moment. Plus I still cant work out what this really actually means! I
> dont
> > mean to hijack your thread, but if anyone can explain this error in
> > "laymans" terms Id appreciate it!
>
> It means you cannot RootPanel.get(...) or SomeWidget.wrap(...) an
> element that happens to be a child/descendant of a Widget (i.e. of an
> element which GWT thinks it is a GWT Widget's element).
>
> As for Vik's issue, sorry, no idea.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.