diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-26 02:16:54 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-26 02:16:54 +0000 |
commit | df5558485b108183da9072a4070bf3ddb223005e (patch) | |
tree | f5d4b0caf262affc874a8c10f64acab9be950763 /sca-java-2.x/trunk/samples | |
parent | f7a2a98e39611d2a9542711b0fca83b52eba07ec (diff) |
Porting js invokation to use dojo programming model
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916537 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples')
-rw-r--r-- | sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html b/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html index 917e034c56..7fa2e07d5a 100644 --- a/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html +++ b/sca-java-2.x/trunk/samples/store-webapp/src/main/webapp/store.html @@ -66,7 +66,7 @@ if (entries.length != 0) { try { - shoppingTotal.getTotal(shoppingTotal_getTotalResponse); + shoppingTotal.getTotal().addCallback(shoppingTotal_getTotalResponse); } catch(e){ alert(e); @@ -84,7 +84,7 @@ } function shoppingCart_postResponse(entry) { - shoppingCart.get("", shoppingCart_getResponse); + shoppingCart.get("").addCallback(shoppingCart_getResponse); } function addToCart() { @@ -97,7 +97,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; } } @@ -116,7 +116,7 @@ shoppingCart.del("", null); } function deleteCart() { - shoppingCart.del("", null); + shoppingCart.del(""); document.getElementById('shoppingCart').innerHTML = ""; document.getElementById('total').innerHTML = ""; } @@ -124,8 +124,8 @@ function init() { try { - catalog.get(catalog_getResponse); - shoppingCart.get("", shoppingCart_getResponse); + catalog.get().addCallback(catalog_getResponse); + shoppingCart.get("").addCallback(shoppingCart_getResponse); } catch(e){ alert(e); |