Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 31906 invoked from network); 4 Jan 2005 19:54:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jan 2005 19:54:03 -0000 Received: (qmail 22995 invoked by uid 500); 4 Jan 2005 19:53:12 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 22962 invoked by uid 500); 4 Jan 2005 19:53:11 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 22946 invoked by uid 99); 4 Jan 2005 19:53:10 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from e5.ny.us.ibm.com (HELO e5.ny.us.ibm.com) (32.97.182.145) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 04 Jan 2005 11:53:06 -0800 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e5.ny.us.ibm.com (8.12.10/8.12.10) with ESMTP id j04Jr4Gb011894 for ; Tue, 4 Jan 2005 14:53:04 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j04Jr4Al140052 for ; Tue, 4 Jan 2005 14:53:04 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j04Jr4iA031230 for ; Tue, 4 Jan 2005 14:53:04 -0500 Received: from brmoe1.bromont.ibm.com (brmoesy3.bromont.ibm.com [9.54.4.225]) by d01av01.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j04Jr3n8031198 for ; Tue, 4 Jan 2005 14:53:03 -0500 In-Reply-To: Subject: RE: Validate a field only if a checkbox is checked To: "Struts Users Mailing List" X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: jecrotea@ca.ibm.com Date: Tue, 4 Jan 2005 14:53:03 -0500 X-MIMETrack: Serialize by Router on brmoe1/Bromont(Release 6.5.2 HFB1 CDBS63GK5H|November 18, 2004) at 01/04/2005 14:53:03 MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I tried something like that, but it doesn't work. Other ideas? I search= all the mailing list. I've seen a guy with almost the same problem as me, except he was working with radio button. He never had an answer though.= ... Thank you. -----------------------------------------------------------------------= ------ Jean-Francois Croteau Services Informatiques IBM Canada Lt=E9e (Bromont) E-mail : jecrotea@ca.ibm.com T=E9l. : (450) 534-6556 = "Jim Barrows" = = To "Struts Users Mailing List" = 2005-01-04 14:37 = = cc = Please respond to Subj= ect "Struts Users RE: Validate a field only if a = Mailing List" checkbox is checked = = = = = = = > -----Original Message----- > From: jecrotea@ca.ibm.com [mailto:jecrotea@ca.ibm.com] > Sent: Tuesday, January 04, 2005 12:03 PM > To: user@struts.apache.org > Subject: Validate a field only if a checkbox is checked > > > > Hi, > I want to know, how can I validate a field that must > contains a date > with the DatePattern ONLY IF a checkbox in my form is > checked? For now, I > have this, but it doesn't work at all: > > > > > test > (customerIdFlg =3D=3D null) > I haven't played with the validWhen syntax much, but what you are looki= ng to say, I think is something like: (this not empty && customerIdFlg=3D=3Dtrue) The date validation you have will make sure that any date entered is va= lid. > > datePattern > yyyy-MM-dd > > > Anyone have a idea? Thank you. > > -------------------------------------------------------------- > --------------- > > Jean-Francois Croteau > Services Informatiques > IBM Canada Lt=E9e (Bromont) > > > > ---------------------------------------------------------------------= > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org = --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org