Use unique click handlers. Then each clickhandler "knows where it came from", so to speak, and can use a unique callback to update the appropriate widgets.
Alternatively, you could pass an enum of some kind to a common click handler, and case through the possibilities in the callback. To me, thats significantly less elegant, but it would still work. -Ben On Feb 19, 9:20 am, frank <t3devt...@googlemail.com> wrote: > Hi, > > I have the following Problem. > From many different methods (e.g. a Clickhandlers) I call the same > async service on the server. > > In the callback I don´t have access on the variables of my calling > method, which I need, to decide, who called the service. (for example > to update different UI-Widgets) > Is there a better way as using "kind of global variable"? > > Thanks Frank. -- 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-toolkit@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.