Are you using one of the static wrap() methods, like Label#wrap()?  The
wrap methods specifically assert that the Element is not a child of a
widget, so wrapping an element in an HtmlPanel wouldn't be allowed.

If you aren't using the wrap methods, can you provide an example?  You
might be violating certain limitations of Widgets that protect against
browser memory leaks.

On 2011/07/26 16:23:52, JOANRIBALTA wrote:
I'm wrapping an element in a new widget which adds new functionalities
to the
element, and I'm using the function
HTMLPanel.addAndReplaceElement(widget,
element) to replace the element by the widget but now the new check in
lines
196/197/198/199 are avoiding that.
Thanks,
Joan Ribalta

196     // Early exit if the element to replace and the replacement
are the
same.
197     if (toReplace == widget.getElement()) {
198       return;
199     }



http://gwt-code-reviews.appspot.com/1467807/

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

Reply via email to