Just got rid of all remaining wrapped elements where I was calling onAttach directly. It's a different case than before... Have a few pages of static html where I just come in to attach a ClickHandler to a few divs. I was doing the DOM traversal, then wrapping an element, adding my click hander, and calling attach. Now, I'm using the RootPanel.get, traversing the widgets for a particular id, casting to a FocusWidget, and adding my handler. Works great, and no more onAttach direct calls. Gotta think this helps memory leaks somewhere.
On Oct 5, 12:13 pm, Flan Brody <flannanbr...@gmail.com> wrote: > good to know that the excellent chapter in "GWT in A" on event handling is > still more or less relevant with 2.1. > > Thanks Thomas > > > > > > > > On Tue, Oct 5, 2010 at 9:06 AM, Thomas Broyer <t.bro...@gmail.com> wrote: > > > On Oct 5, 4:40 pm, Flan Brody <flannanbr...@gmail.com> wrote: > > > Hi > > > > "GWT in Action" has an excellent chapter about "Event Handling". It's an > > old > > > book, probably 2007 and GWT 1.6 but as far as I can tell from looking at > > the > > > 2.1.M3 API (*com.google.gwt.user.client.ui.Widget) *alot of this hasn't > > > changed much, if at all > > > > I read somewhere that in 2.0 Listeners became handlers,* > > > That was GWT 1.6 actually. Listeners are deprecated since then. The > > original plan was to remove them in 2.0 but they're finally still > > there, and will probably last a bit of time (there's also an history > > in GWT that nothing had ever been removed...) > > > > Does any know how much the event handling has changed since 1.6?* > > > It hasn't. It might change a bit in a future release (was initially > > planned for 2.1 but won't do it) but onyl at a lower level. The > > com.google.gwt.event.* public API won't change any time soon I guess. > > (note that in 2.1, HandlerManager's internals have changed, but again, > > it's low-level, so it's probably only relevant to 0.00001% GWT users) > > > -- > > 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-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2Bunsubs > > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.