Reputation: 213
I've tried to follow the GWT RPC sample codes, and i don't understand how the AsyncCallback's Onsuccess method result is being set. Anyone help me to understand the flow.
Thanks.
Upvotes: 0
Views: 895
Reputation: 3671
AsyncCallback<YourReturnType> callback = new AsyncCallback<YourReturnType>() {
@Override
public void onSuccess(YourReturnType result) {
//to do something with the result
}
@Override
public void onFailure(Exception ex) {
//to do something with exceptions
}
}
Upvotes: 2