[isidorus-cvs] r881 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Tue Sep 13 08:35:45 UTC 2011


Author: lgiessmann
Date: Tue Sep 13 01:35:44 2011
New Revision: 881

Log:
gdl-frontend: Widgets: fixed a bug in the commit-url of http://textgrid.org/serviceregistry/model/types/Hash-Object instances

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.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	Tue Sep 13 00:11:38 2011	(r880)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/CommitCallback.java	Tue Sep 13 01:35:44 2011	(r881)
@@ -171,14 +171,12 @@
 				jtm = tmEngine.exportTm(topics, associations);
 			}
 			
-			String commitUrl = URL.encode(this.DELETE_REUQEST_URL);
+			String commitUrl = URL.encode(this.COMMIT_REQUEST_URL);
 			String getUrl = URL.encode(this.GET_REQUEST_URL);
 			RequestBuilder commitBuilder = new RequestBuilder(RequestBuilder.POST, commitUrl);
 			commitBuilder.setHeader("Content-type", "application/json");
-			RequestBuilder getBuilder = new RequestBuilder(RequestBuilder.POST, getUrl);
-			try{
-				Window.alert(jtm); //TODO: remove
-				
+			RequestBuilder getBuilder = new RequestBuilder(RequestBuilder.GET, getUrl);
+			try{				
 				if(edited)getBuilder.sendRequest(null, new EditedHashObjectCommitRequest(null, jtm, false));
 				else commitBuilder.sendRequest(jtm, new HashObjectCommitRequest(jtm));
 			}catch(RequestException e){
@@ -229,6 +227,7 @@
 		
 		public HashObjectCommitRequest(String objectToBeCommitted){
 			this.objectToBeSend = objectToBeCommitted;
+			Window.alert("test"); //TODO: remove
 		}
 		
 		




More information about the Isidorus-cvs mailing list