From 4aa4ae7815a12dcb6e7681d371d7ee0b140b52f9 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 28 Apr 2009 21:03:19 +0000 Subject: 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 --- .../samples/store-dojo/src/main/resources/uiservices/store.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'branches/sca-java-1.x') 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 @@ '' + '' + catalogItems[i].name + '' + '' + catalogItems[i].price + '' + '' + ''; - shoppingCart.post(entry, shoppingCart_postResponse); + shoppingCart.post(entry).addCallback(shoppingCart_postResponse); items[i].checked = false; } } @@ -119,7 +119,7 @@ '
'+ ''+ ''; - shoppingCart.del("", null); + shoppingCart.del(""); } function deleteCart() { shoppingCart.del("", null); -- cgit v1.2.3