"A widget that has an existing parent widget...", but there is no parent widget

55 views
Skip to first unread message

Jaroslav Záruba

unread,
Dec 18, 2011, 1:51:37 PM12/18/11
to google-we...@googlegroups.com
I end up with "A widget that has an existing parent widget may not be added to the detach list" when I try to create a Label within a form after the following GQuery call has been made:
$("#loginForm").submit(new Function() ...
(adding event listener on loginForm element)

If I'm not mistaken GWT decides whether element is part of widget based on whether it has any event listeners attached to it, I am judging by
user.src.com.google.gwt.user.client.ui.RootPanel.isElementChildOfWidget(Element)
Seems like that is causing the above described.

Cheers
 Jaroslav

(Posting this also to GQuery group.)
Reply all
Reply to author
Forward
0 new messages