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
This commit is contained in:
Musachy Barroso
2007-07-27 17:40:09 +00:00
parent 8066a53a0b
commit e6c552dffa
@@ -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";
}