How's that? Is the bit I wrote about "after adding it to a panel" accurate? Seems like we're trying to get to a world where the add would be fine, and the wrap call wouldn't happen until the parent is wrapped — are we there already?
http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java (right): http://gwt-code-reviews.appspot.com/1427812/diff/6003/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode211 user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:211: throw new IllegalStateException( wrapElement() cannot be called twice, or after a call to getElement() has forced the widget to render itself (e.g. after adding it to a panel) http://gwt-code-reviews.appspot.com/1427812/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
