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 78AA39630 for ; Fri, 24 May 2013 06:26:22 +0000 (UTC) Received: (qmail 79279 invoked by uid 500); 24 May 2013 06:26:22 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 79254 invoked by uid 500); 24 May 2013 06:26:21 -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 79186 invoked by uid 99); 24 May 2013 06:26:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 06:26:20 +0000 Date: Fri, 24 May 2013 06:26:20 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-600) Enable Client-side validation for visitor validations 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-600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-600: ----------------------------- Fix Version/s: (was: 2.3.15) 2.3.16 > Enable Client-side validation for visitor validations > ----------------------------------------------------- > > Key: WW-600 > URL: https://issues.apache.org/jira/browse/WW-600 > Project: Struts 2 > Issue Type: New Feature > Components: XML Validators > Affects Versions: WW 2.1 > Environment: JDK 1.4.2, Tomcat 5.0.27, WebWork CVS (20040721) > Reporter: Matt Raible > Fix For: 2.3.16 > > Attachments: ASF.LICENSE.NOT.GRANTED--visitor_validator.patch, visitor_validator.patch > > > The client-side JavaScript doesn't work as advertised on: > http://wiki.opensymphony.com/display/WW/Client-Side+Validation > I have the following form: > > This generates the following onsubmit handler: > onsubmit="return(${parameters.name}_validate())" > And the following JavaScript after the form: > > If I add name="'user'" to the , then the JavaScript looks right, but I get: > function user_validate_actual() { > var form = document.forms['user']; > // cannot find any applicable validators > return null; > } > I have the following in validators.xml: > class="com.opensymphony.webwork.validators.JavaScriptRequiredStringValidator"/> > Oddly enough, XMLBuddy (in Eclipse) says that "name" must be declared. -- 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