I have following method which should return a list of PollProxy.
public List<PollProxy> getPollList(){
List<PollProxy> polls;
requestFactory.userRequest().findUser(Cookies.getCookie("user")).with("polls").fire(
new Receiver<UserProxy>(){
@Override
public void onSuccess(UserProxy user){
polls=user.getPolls();
}
});
return polls;
}
but I can't figure out how to use the list returned by user.getPolls() outside the onSuccess() . As polls field can't be accessed inside an inner class. Please fix this method for me?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment