On Jun 17, 5:11 am, Chris Boertien <chris.boert...@gmail.com> wrote: > What you want to do is have some method in the caller that is waiting > for the result that the callback can call once the data is retrieved. > So you would make the getUser() method return type void and, if the > class defining that method is the same as the one calling that method, > add another method handleUser(String s) which will be called from > within onSuccess.
Or, since other parts of the system might care about the identity of the current user, use an event bus and post an UserChangeEvent in the onSuccess method. Anyone who cares about the current user can listen for these events. Respectfully, Eric Jablow -- 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-tool...@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.