Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 38707 invoked from network); 11 Jul 2007 14:42:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 14:42:05 -0000 Received: (qmail 63214 invoked by uid 500); 11 Jul 2007 14:41:54 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 63183 invoked by uid 500); 11 Jul 2007 14:41:54 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 63159 invoked by uid 99); 11 Jul 2007 14:41:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 07:41:54 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of niall.pemberton@gmail.com designates 66.249.90.182 as permitted sender) Received: from [66.249.90.182] (HELO ik-out-1112.google.com) (66.249.90.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 07:41:50 -0700 Received: by ik-out-1112.google.com with SMTP id b32so1198662ika for ; Wed, 11 Jul 2007 07:41:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=H+cIbyA9UDF2xLg8wCgLpjSKpRu12vi4JJymmmmiEwoHg0pmQC6JVvR3w6Copmm9uIUdmdW3VsG9gZcXeDMxYbVddPsivsdoesNpa3FXFZ0GAaIwKhwpwsQHflUhYbVO/nxji2Cxv9RJRwApIUXJu+PsOdkAc27qgOz+gGTHggU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ccl7gGyjWeBdohTCFM2SsVJ++J1Te0wGaMQg75weSlEvCLxexqT+ndd5sqN9u4FZJVrCjgOtX/wl+0JioDAFPtcpzVbODgFsbig/YBZD2KP+wJajppHjjHfu3x6xQnryJ4al/BvMo2/JxC3yUsmI0jbA/FPK0P/izdsSAMg/EYQ= Received: by 10.78.181.13 with SMTP id d13mr2440049huf.1184164888669; Wed, 11 Jul 2007 07:41:28 -0700 (PDT) Received: by 10.78.75.2 with HTTP; Wed, 11 Jul 2007 07:41:28 -0700 (PDT) Message-ID: <55afdc850707110741u46ce293br857301ba875666c@mail.gmail.com> Date: Wed, 11 Jul 2007 15:41:28 +0100 From: "Niall Pemberton" To: "Jakarta Commons Users List" Subject: Re: Validator 1.1.3 javascript error In-Reply-To: <4694E73A.8080505@conicet.gov.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4693E327.90104@conicet.gov.ar> <55afdc850707101848p58811368ve2ac1853a7132e40@mail.gmail.com> <4694E73A.8080505@conicet.gov.ar> X-Virus-Checked: Checked by ClamAV on apache.org On 7/11/07, Pablo Fern=E1ndez wrote: > Sorry for the lack of information! > I'm using Struts 1.1 as controller (JSP 1.2 and Servlet 2.3) on a Tomcat > 4.1.24 server. OK Struts 1.1 shipped with Validator 1.0.2 and whether it works with Validator 1.1.3 I have no idea. Also the JavaScript validation routines in Struts 1.1 was actually configured in the validation-rules.xml - so it wasn't even a part of Commons Validator - so how you upgrade to Validator 1.1.3 (when the JavaScript had moved to Validator) I have no idea. The only thing I can suggest is to look at the javascript Struts is generating to call commons validator. Then take a look at the JavaScript validations in Struts 1.1 validator-rules.xml and compare to Commons Validator script for 1.1.3 and see if you can figure out where its different. Whether that helps you solve it is another matter. Probably if you want to use a later Commons Validator version then the easiest thing would be to upgrade to Struts 1.2.x http://wiki.apache.org/struts/StrutsUpgrade Niall > Thanks in advance! > > Pablo. > > Niall Pemberton escribi=F3: > > On 7/10/07, Pablo Fern=E1ndez wrote: > >> Hi, I'm using Validator 1.1.3 and I can't get client side validation t= o > >> work. > >> I get the 'required is undifined' javascript error on this line: > >> > >> oRequired =3D new required(); > >> > >> What should I do? Any ideas please? > >> Thanks in advance! > > > > Can you provide more information about the environment you're using > > this in - for example are you using this with Struts (if so what > > version)? If not Struts then what (if anything) is rendering the calls > > to the required validator? > > > > Niall > > > >> Pablo. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org