Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 2151 invoked from network); 3 Nov 2005 22:34:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Nov 2005 22:34:28 -0000 Received: (qmail 60829 invoked by uid 500); 3 Nov 2005 22:34:23 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 60792 invoked by uid 500); 3 Nov 2005 22:34:23 -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 60781 invoked by uid 99); 3 Nov 2005 22:34:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 14:34:22 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of donald.brown@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 14:34:17 -0800 Received: by zproxy.gmail.com with SMTP id 14so269574nzn for ; Thu, 03 Nov 2005 14:34:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KHptc24e7yw6mmxmBXeIhI0uvhHxat3iKW71lzdeuvFdALhTRBZUHGsVOPCyGPbAIDBrlkQeoWe43YbRGA+rwQVsrdK+acuGjfDJGZ48+FfNOxHze8T8OuDqk2iShUL9Pai8Q2b5SH6S86nRscJd0aRlXUq7xwfChQ+ymVmdaVQ= Received: by 10.65.51.6 with SMTP id d6mr1325633qbk; Thu, 03 Nov 2005 14:34:00 -0800 (PST) Received: by 10.65.228.11 with HTTP; Thu, 3 Nov 2005 14:34:00 -0800 (PST) Message-ID: <1c661f2f0511031434k768316cckb72a130bf3de00a2@mail.gmail.com> Date: Thu, 3 Nov 2005 14:34:00 -0800 From: Don Brown To: Jakarta Commons Users List Subject: Re: [validator] Date validation issues In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13936_4022137.1131057240592" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_13936_4022137.1131057240592 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a limitation based on the fact that the entire SimpleDateFormat pattern matching engine hasn't been ported to Javascript. If you want to open up a ticket and perhaps add a patch, I'll be very happy to include ful= l support :) Don On 11/3/05, Laurie Harper wrote: > > I'm using Validator in a Struts project and I'm having some problems > with client-side date validation. Specifically, in validateDate: > > - it only accepts numeric input (i.e. it can match '01 01 2006', but not > '01 Jan 2006') > > - it doesn't pay attention to the date format; it can only match > variants on 'dd MM yyyy'; any other characters/strings besides 'dd', > 'MM', 'yyyy' get treated as static seperator characters. For example, > 'dd MMM yyyy' matchs '01 01M2006'! > > I'm basing this on the Javascript generated by Struts' html:javascript > tag. Is there something special I need to be doing to get Validator to > generate client-side validation code that's properly in sync with the > date pattern, or is it really just this limitted? > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > ------=_Part_13936_4022137.1131057240592--