diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-03 20:16:00 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-03 20:16:00 +0000 |
commit | 92dcae4ae216f1baf0fa58905492c9783b803de5 (patch) | |
tree | d80dea5a6430945279cc9a295a9f6f00d4a87893 /branches/sca-java-1.x/samples | |
parent | b37df1cc7538b4597e344f1dd8582d2d85290c5c (diff) |
TUSCANY-2878 - Moving dojo.requires to before store.js and fixing invocation of services to follow dojo pattern
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@761775 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples')
-rw-r--r-- | branches/sca-java-1.x/samples/store-dojo/src/main/resources/uiservices/store.html | 8 |
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 e0b44d580e..72d122af94 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 @@ -21,12 +21,13 @@ <title>Store</title> <script type="text/javascript" src="/dojo/dojo.js"></script> -<script type="text/javascript" src="store.js"></script> <script type="text/javascript"> dojo.require("dojo.rpc.JsonService"); dojo.require("tuscany.AtomService"); </script> +<script type="text/javascript" src="store.js"></script> + <script language="JavaScript"> @@ -127,10 +128,9 @@ } 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); |