aspose file tools
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

Win a copy of Head First Android this week in the Android forum!
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: 9370

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
It is sorta covered in the JavaRanch Style Guide.
subject: Call callback inside another one
It's not a secret anymore!