My logic was split with the purpose of decoupling two unrelated functionalities, but seeing how there is no way to do what I was trying to do, I created a custom event for one of the 2 functionalities. What could help though is to add a field to the ClickEvent, settable from the outside, so that at least data can be passed from one place to another (assuming the event object stays the same - if it doesn't then that's that). Thanks for the help. Eugen.
On Mon, Jul 4, 2011 at 6:37 PM, Thomas Broyer <[email protected]> wrote: > You should add a single ClickHandler that has its own logic, and the > ClickHandler you'd like to be called conditionally would be known by this > specific ClickHandler, which would choose whether to call or not. > Events in GWT (as in the DOM for instance) are dispatched to all > handlers/listeners; even throwing an exception wouldn't stop the dispatch. > If you need another behavior, you have to implement it yourself. > > -- > 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/-/OD0nkE47inkJ. > > 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. > -- 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.
