File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Call callback inside another one Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Call callback inside another one" Watch "Call callback inside another one" New topic

Call callback inside another one

S Roberts
Ranch Hand

Joined: Dec 06, 2013
Posts: 66
can you please suggest me, how can i call inside of first AsyncCallback after calling on Success, the second AsyncCyllback? i use gwt rpc and load my data into ui, and after calling this first AsyncCallback on Success method i must call another AsyncCallback that execute the next part of the first AsyncCallback
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

Do you want to make another server side Async call or just call a callback? What issue are you facing with implementing whatever you are doing?

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
han li

Joined: Apr 21, 2015
Posts: 1

Chaining Aysn call is doable in GWT. Not sure why yours does not work.
do you have any sample?

Or try promise to avoid too many chains:

No Sweet Without Sweat
I agree. Here's the link:
subject: Call callback inside another one
It's not a secret anymore!