From issues-return-19399-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Fri Dec 28 16:44:13 2012 Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E090AD46A for ; Fri, 28 Dec 2012 16:44:12 +0000 (UTC) Received: (qmail 58186 invoked by uid 500); 28 Dec 2012 16:44:12 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 58162 invoked by uid 500); 28 Dec 2012 16:44:12 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 58155 invoked by uid 99); 28 Dec 2012 16:44:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 16:44:12 +0000 Date: Fri, 28 Dec 2012 16:44:12 +0000 (UTC) From: "COMBEAU (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-3954) Ajax Validation is broken (json) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] COMBEAU updated WW-3954: ------------------------ Description: Hello, I have find an issue on Struts 2.3.4.1. I have made a migration from Struts 2.1.8 to Struts 2.3.4.1 and I have seen that the Ajax Validation doesn't work anymore. Moreover, when I would like to make the validation of my form in Ajax I seen that response was already "success" even if one or more fields are in errors. I think it's not normal. In Struts 2.1.8 when fields are in errors the response of an Ajax call is "error" not "success" T correct this issue I have made a workaround. In the JSONValidationInterceptor, if the buildResponse method have "/*" in the first append and "*/" in the last it correct the problem... Is this a real issue ? was: Hello, I have find an issue on Struts 2.3.4.1. I have made a migration from Struts 2.1.8 to Struts 2.3.4.1 and I have seen that the Ajax Validation doesn't work anymore. Moreover, when I would like to make the validation of my form in Ajax I seen that response was already "success" even if one or more fields are in errors. I think it's not normal. T correct this issue I have made a workaround. In the JSONValidationInterceptor, if the buildResponse method have "/*" in the first append and "*/" in the last it correct the problem... Is this a real issue ? > Ajax Validation is broken (json) > -------------------------------- > > Key: WW-3954 > URL: https://issues.apache.org/jira/browse/WW-3954 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - JSON > Affects Versions: 2.3.1, 2.3.1.1, 2.3.1.2, 2.3.3, 2.3.4, 2.3.4.1 > Reporter: COMBEAU > Priority: Critical > > Hello, > I have find an issue on Struts 2.3.4.1. I have made a migration from Struts 2.1.8 to Struts 2.3.4.1 and I have seen that the Ajax Validation doesn't work anymore. > Moreover, when I would like to make the validation of my form in Ajax I seen that response was already "success" even if one or more fields are in errors. I think it's not normal. In Struts 2.1.8 when fields are in errors the response of an Ajax call is "error" not "success" > T correct this issue I have made a workaround. In the JSONValidationInterceptor, if the buildResponse method have "/*" in the first append and "*/" in the last it correct the problem... > Is this a real issue ? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira