I'm no expert on the dom but I thought that they did do change events: http://www.quirksmode.org/dom/events/change.html#t04
The problem with using ValueChangeEvents is that list boxes don't implement HasValueChangeHandlers... although I believe there plans to implement the HasValue interface: http://code.google.com/p/google-web-toolkit/issues/detail?id=2010#c7 No matter though, I've just temporarily extended checkbox to implement HasChangeHandlers and I'm able to get it to do what I want to do ;) 2009/10/17 Thomas Broyer <[email protected]> > > > On 16 oct, 11:32, shangxiao <[email protected]> wrote: > > Hi, > > > > Is there any reason why CheckBox and RadioButton don't implement the > > HasChangeHandlers interface? I want to create a single handler for > > bunch of widgets including text boxes and a checkbox. > > They implement HasClickHandlers because that's how they work at the > DOM level: they don't fire 'change' events but 'click' events. > However, both TextBox and CheckBox (and therefore RadioButton too) > implement HasValue<?>, which inherits HasValueChangeHandlers, so you > could use ValueChangeEvents instead of ChangeEvents. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
