You can assign your response to an instance variable, you just can not write this.variable inside onSuccess because that references the Receiver and not the real class that contains the async call. Just omit "this" and it should work. If you want to be complete you could write it the long way "RealClass.this.variablename". I do this all the time in my async callbacks. But its only useful if you want to remember some information obtained by an async call. If you really need to process the response you have to do it in the onSuccess method either directly or by calling a separate method (or by firing an event which is basically the same as calling a separate method).
-- J. -- 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/-/QjiSZTkir44J. 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.
