summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/samples/store-dojo
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-28 21:03:19 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-04-28 21:03:19 +0000
commit4aa4ae7815a12dcb6e7681d371d7ee0b140b52f9 (patch)
tree024e7b42d31c1a4870632bb82a2cf9ae7272e789 /branches/sca-java-1.x/samples/store-dojo
parent2c9b9e3c62be0c52b0f96f5640787058aa68b97d (diff)
TUSCANY-2998 - Fixing sample usage of dojo based JavaScript proxies to avoid issues when invoking shopingCart service (e.g loading shoopingCart contents)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@769534 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples/store-dojo')
-rw-r--r--branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html b/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
index 72d122af94..8fd22f4123 100644
--- a/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
+++ b/branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html
@@ -72,7 +72,7 @@
if (entries.length != 0) {
try {
- shoppingTotal.getTotal(shoppingTotal_getTotalResponse);
+ shoppingTotal.getTotal().addCallback(shoppingTotal_getTotalResponse);
}
catch(e){
alert(e);
@@ -90,7 +90,7 @@
}
function shoppingCart_postResponse(entry) {
- shoppingCart.get("", shoppingCart_getResponse);
+ shoppingCart.get("").addCallback(shoppingCart_getResponse);
}
function addToCart() {
@@ -103,7 +103,7 @@
'<Item xmlns="http://services/">' +
'<name xmlns="">' + catalogItems[i].name + '</name>' + '<price xmlns="">' + catalogItems[i].price + '</price>' +
'</Item>' + '</content></entry>';
- shoppingCart.post(entry, shoppingCart_postResponse);
+ shoppingCart.post(entry).addCallback(shoppingCart_postResponse);
items[i].checked = false;
}
}
@@ -119,7 +119,7 @@
'<br>'+
'<input type="submit" value="Continue Shopping">'+
'</form>';
- shoppingCart.del("", null);
+ shoppingCart.del("");
}
function deleteCart() {
shoppingCart.del("", null);