On 9 oct, 04:15, Ray Tayek <[email protected]> wrote:
> hi, starting a project using eclipse galileo and a week old download
> of gwt eclipse plugin..
>
> i sometime get a: "A widget that has an existing parent widget may
> not be added to the detach list" error when doing the following type of thing:
>
> //<div id="bar">static bar</div>
> Label bar = new Label("bar label);
> bar.getElement().setId("barid");
> RootPanel.get("bar").add(bar);
> RootPanel rp = RootPanel.get("barid");

You cannot have "root" widgets whose elements are nested (i.e. there's
no parent/child relationship between the widgets, but there's one
between their elements in the DOM). There are several reasons
(including FUD) and there has never been a compelling argument for
allowing it.
The only exception is RootPanel.get() (without an ID argument).

> this usually fails. doesn't seem to matter whether bar is a panel, an
> html, or a label (does seem to work with buttons though). seems like
> i am not using gwt properly and breaking some rule 
> like:http://markmail.org/message/l3okzeqycanf5alg
>
> can someone point me to some doc on this?

See issue 3552 (RootPanel.get() is very similar to SomeWidget.wrap()
methods)

> also, i am using gwt-logger. when this crashes, i get this big grey
> thing that says: "GWT Code Server Disconnected " which hides the log
> stiff and my html stuff. i have poor vision, is there some way to
> move the thing that has the "GWT Code Server Disconnected " so i can
> see what's underneath?

In Firebug or any developer tool, set display:none on the DIV.

-- 
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.

Reply via email to