Sunday, January 30, 2011

How to wrap an existing div into an HTML widget ?

Hi,

I wonder how to wrap an existing div into an HTML widget.

I am using GQuery to retrieve the element already attached to the html
page.

Now that I have a DOM div element, I use HTML myHtml =
HTML.wrap(element);

When i run the code i get the following error:

java.lang.AssertionError: A widget that has an existing parent widget
may not be added to the detach list
at
com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:
136)
at com.google.gwt.user.client.ui.HTML.wrap(HTML.java:66)

Any ideas, suggestions or help are welcome.

Thank's,

Joe

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment