View Full Version : Store server side pattern

10 Apr 2012, 5:35 PM
I'm editing a ListStore<User> with a Grid object.

For user CRUD I have a server service with methods like saveUser(), deleteUser(), etc, which I call this way :

service.saveUser(user, new AsyncCallback<Void>() {

public void onFailure(Throwable caught) {
Info.display("Error", caught.getMessage());

public void onSuccess(Void result) {
Info.display("Saved", "Saved");

I don't know where and how in the api I should hook these methods to store information on the server and assure ACIDity of the system. I tried with a StoreUpdateEvent but the it is triggered after the changes are committed and avoid the possibility to rollback the transaction if something goes wrong on the server.

Is there another way?