I did make some changes to RootPanell.get(id) recently, but I can't seem to
reproduce the case you're describing. It also looks like the exception stack
you posted may have been cut off. Could you post the full exception trace?
Also, if you can post a code snippet that reproduces the problem, it would
be very helpful. I just tried the following, which worked fine:
In Hello.html:

   <div id='foo'></div>

In Hello.java:

    RootPanel.get("foo").add(new Button("foo"));

    RootPanel.get("foo").add(new Button("bar"));

It's not inconceivable that I inadvertently broke something that we weren't
properly testing for, so your help in tracking this down would be greatly
appreciated.

Cheers,
joel.

On Sat, Mar 7, 2009 at 11:13 AM, aris <[email protected]> wrote:

>
> Recompiling a project using the build #4955 from SVN throws a lot of
> errors, every time I use the RootPanel.get(“id_element”)… I get the
> next exception:
>
>        at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
> (RootPanel.java:122)
>        at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:197)
>
> The first time it happens is inside the onModuleLoad(), I get an
> existing element inside the .html file using RootPanel.get(“flash1”)
> and that throws the exception
> (I checked that the id="flash" element really exists)
>
> Thanks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to