From e6c552dffabf07d9bbc9540392eef9dd874c5bc1 Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Fri, 27 Jul 2007 17:40:09 +0000 Subject: [PATCH] WW-2050 Separate JSONValidationInterceptor from AnnotationValidationInterceptor Patch provided by Lukasz Racon git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@560333 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/struts2/static/dojo/struts/widget/Bind.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js index 4fe7d2345..7c6a25d9f 100644 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js +++ b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js @@ -297,6 +297,7 @@ dojo.widget.defineWidget( } var tmpHref = this.href; + tmpHref = tmpHref + (tmpHref.indexOf("?") > -1 ? "&" : "?") + "struts.enableJSONValidation=true"; if(!this.ajaxAfterValidation && this.validate) { tmpHref = tmpHref + (tmpHref.indexOf("?") > -1 ? "&" : "?") + "struts.validateOnly=true"; }