RootPanel's clear method only removes GWT widgets. I would recommend to
prevent the mixing of HTML in your host page and GWT widgets. Use a label
widget instead.
If this isn't an option, you can do:

Element element = RootPanel.get("entries").getElement();
DOM.removeChild(element, 0);

This will manipulate the DOM directly and thus it's not recommended.

Regards
Jan Ehrhardt

On Sun, Dec 13, 2009 at 11:09 PM, Dennis Madsen <[email protected]> wrote:

> I've this HTML code:
>
>        <div id="entries">
>                <div class="loading">Loading guestbook entries..</div>
>        </div>
>
> When calling a "RootPanel.get("entries").clear();" I expected that all
> childs inside this div will be removed. But it doesn't. How can I
> really clear 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]<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.


Reply via email to