Hi all,
I'm trying to implement a RestDatasource following your advice and all works very fine.
Only a problem. When due to some reason the call on the server fail, my client Callback's onFailure is called
How could I rollback the values original values in the associate Listgrid (editable via ListGridEditEvent.CLICK)? I show the Exception but the grid continues to show the data that wasn't applied on the server...If I try to edit a Row then the value is corrected...but I would like that it happens automatically...invalidateCache seems not to have effect on the ListGrid...Any hint?
Thank you very very much!!
Best regards
I'm trying to implement a RestDatasource following your advice and all works very fine.
Only a problem. When due to some reason the call on the server fail, my client Callback's onFailure is called
Code:
final AsyncCallback<String> oRemoteServiceCallback = new AsyncCallback<String>() {
public void onFailure(Throwable e) {
Window.alert("Datasource object -> " + getID() + " Error: " + e.getMessage());
MyDataSource.this.invalidateCache();
}
};Thank you very very much!!
Best regards