Friday, November 25, 2011

attach listeners/handlers to widget, then do some DOM-stuff - listeners gone?

hi community,

i wrote a little logic-attacher in gwt that is called from hand written javascript. i get an element by its id, wrap it in a flowpanel, wrap that in a table, put some buttons in the table and attach mouseover & clickhandlers to the buttons.

then i attach the whole thing to a div. everything works except the handlers - they simply are never called.

when doing everything in puregwt (no native dom manipulation, just gwt widgets & panels) it works fine. does moving elements in the dom tree destroy the handlers? if yes, are they repairable?



--
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