Author: lgiessmann
Date: Mon Sep 19 08:34:07 2011
New Revision: 929
Log:
gdl-frontend: Widgets: after a succeeded delete/commit operation the web page is getting reloaded automatically, instead of showing an alert message
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/DeleteCallback.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java Mon Sep 19 08:24:35 2011 (r928)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java Mon Sep 19 08:34:07 2011 (r929)
@@ -207,7 +207,7 @@
@Override
public void onResponseReceived(Request request, Response response) {
if (200 == response.getStatusCode()) {
- Window.alert("commit operation of the object " + this.objectToBeSend + " succeeded");
+ Window.Location.reload();
} else {
Window.alert("commit operation of the object " + this.objectToBeSend + " failed: " + response.getStatusCode() + "(" + response.getStatusText() + ")\n" + response.getText());
}
@@ -466,7 +466,7 @@
@Override
public void onResponseReceived(Request request, Response response) {
if (200 == response.getStatusCode()) {
- Window.alert("commit operation of the object " + this.objectToBeSend + " succeeded");
+ Window.Location.reload();
} else {
Window.alert("commit operation of the object " + this.objectToBeSend + " failed: " + response.getStatusCode() + "(" + response.getStatusText() + ")\n" + response.getText());
}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/DeleteCallback.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/DeleteCallback.java Mon Sep 19 08:24:35 2011 (r928)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/DeleteCallback.java Mon Sep 19 08:34:07 2011 (r929)
@@ -83,7 +83,7 @@
@Override
public void onResponseReceived(Request request, Response response) {
if (200 == response.getStatusCode()) {
- Window.alert("delete operation of the object " + this.objectToBeSend + " succeeded");
+ Window.Location.reload();
this.topicToBeDeleted.remove();
// TODO: reset the web page
} else {
@@ -95,7 +95,6 @@
@Override
public void onError(Request request, Throwable exception) {
Window.alert("could not delete the data: " + this.objectToBeSend);
-
}
}
}