Monday, February 6, 2012

Re: Are handlers kept registered on PopupPanel when we call hide() on it ?

It looks like the issue is not really the PopupPanel but rather the widget(s) you add inside: if you reuse the same widget (either in a single PopupPanel that you hide/show, or within several PopupPanel-s during the lifetime of the application), then handlers won't be unregistered for you, just like for any other widget (the same goes for the CloseHandler attached to a PopupPanel: PopupPanel is a widget like any other –except you don't add it to a parent widget–, so handlers aren't unregistered automatically). If on the other hand you re-create everything from scratch every time, then you'll obviously have to register your handlers on the new instances.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/J1_fBGcLXMcJ.
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