-
Sencha User
add success property or callback to my own function
how can i add a property or callback to my own function?? thx
-
Ext User
create the callback object:
// the type of the object depends on the return type oh the method implemented on the server side
AsyncCallback<Boolean> callback= new AsyncCallback<Boolean>() {
public void onFailure(Throwable caught) {
//communication failed
MessageBox.alert("failure", "", null);
}
public void onSuccess(Boolean result) {
if (result == true) {
MessageBox.alert("Success", "", null);
}
}
};
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules