Regarding the example given in the issue, I don't think you are using the new event system properly, are you? See my note in the issue.
As for the bug using the deprecated event system, don't use the deprecated event system. Hence the reason it's called deprecated - you get unsupported behaviour. Cheers On Thu, Apr 9, 2009 at 7:43 PM, Jeff Chimene <[email protected]> wrote: > > On 04/09/2009 03:36 PM, Sumit Chandel wrote: > > Hi jchimene, > > > > Thanks for catching this. What you've discovered is essentially a bug. > > I reproduced it on my end and can confirm that events will fire twice > > for pretty much any class extending Composite because of the two > > onBrowserEvent calls in the Composite class (one to super, the other > > from the wrapped widget). > > > > It looks like the rationale for making this change was discussed in > > Issue #3211 (link below). While it seems to make sense, I think this > > case of Composites wasn't considered, and so we're seeing double-fire > > events like the one in your code snippet above. > > > > Issue #3211: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=3211 > > > > A potential workaround you can use in the case of the SuggestBox would > > be to extend it and override the onBrowserEvent() method once more, > > this time making a single call to onBrowserEvent from the wrapped widget. > > > > E.g.: > > > > public class MySuggestBox extends SuggestBox { > > �...@override > > ��public void onBrowserEvent(Event event) { > > �� �getWidget().onBrowserEvent(event); > > ��} > > } > > > > Give that a try and let us know how it goes. Meanwhile, I'll file an > > issue on the tracker for this bug and let you know once it's reported > > so you can follow up on it. > > > > > 'ta bien > > public class JecSuggestBox extends SuggestBox { > > public JecSuggestBox(MultiWordSuggestOracle multiWordSuggestOracle) { > super(multiWordSuggestOracle); > } > > public void onBrowserEvent(Event event) { > getWidget().onBrowserEvent(event); > } > } > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
