diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-17 00:36:25 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-17 00:36:25 +0000 |
commit | d87b7a5e7430ab946c851208e45ddbf03330c98f (patch) | |
tree | a25d04d5dd5ba93de5b138164bb63a4528f07565 /java/sca/modules/implementation-widget-runtime | |
parent | 3f56676b3bf9248726941f88018bf7b38db5e895 (diff) |
TUSCANY-1961 - Properly reporting business and runtime exceptions to clients using jsonRPC binding
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@677479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-widget-runtime')
-rw-r--r-- | java/sca/modules/implementation-widget-runtime/src/test/resources/content/store.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/sca/modules/implementation-widget-runtime/src/test/resources/content/store.html b/java/sca/modules/implementation-widget-runtime/src/test/resources/content/store.html index c2277772bf..58f9f560a7 100644 --- a/java/sca/modules/implementation-widget-runtime/src/test/resources/content/store.html +++ b/java/sca/modules/implementation-widget-runtime/src/test/resources/content/store.html @@ -34,7 +34,11 @@ //@Property var locale = Property("locale");
- function catalog_getResponse(items) {
+ function catalog_getResponse(items,exception) {
+ if(exception){
+ alert(exception.message);
+ return;
+ }
var catalog = "";
for (var i=0; i<items.length; i++)
catalog += '<input name="items" type="checkbox" value="' +
@@ -120,4 +124,4 @@ </form>
</div>
</body>
-</html>
\ No newline at end of file +</html> |