Friday, November 25, 2011

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

paste some code to enable more valid answer ;) ... but probably the
matter is the fragment below

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

if you create a panel (and some widget in its hierarchy) an then
attach the panel's element to do DOM with use of "plain DOM methods"
the domHandlers will never be inited (or "sinked" in gwt-dialekt ;))
- look at onAttach and addDomHandler methods source of widget for
more :).

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