Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 63249 invoked from network); 26 Sep 2005 13:04:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2005 13:04:02 -0000 Received: (qmail 92746 invoked by uid 500); 26 Sep 2005 13:03:51 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 92666 invoked by uid 500); 26 Sep 2005 13:03:50 -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 92569 invoked by uid 99); 26 Sep 2005 13:03:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2005 06:03:50 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.45.43.101] (HELO dtcc.com) (207.45.43.101) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2005 06:03:54 -0700 Received: from ([172.22.41.189]) by sainet05.dtcc.com with ESMTP id KP-GTV67.515877; Mon, 26 Sep 2005 09:03:04 -0400 In-Reply-To: To: "Jakarta Commons Users List" Cc: commons-user@jakarta.apache.org Subject: Re: [validator] results with multiple validation actions bug? MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.2 June 01, 2004 Message-ID: From: Aaron Sheffey Date: Mon, 26 Sep 2005 09:02:58 -0400 X-MIMETrack: Serialize by Router on NAINET04/DTCC at 09/26/2005 09:03:05 AM, Serialize complete at 09/26/2005 09:03:05 AM Content-Type: multipart/alternative; boundary="=_alternative 0047AF9685257088_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 0047AF9685257088_= Content-Type: text/plain; charset="US-ASCII" Have you stepped through the code as it runs? Have you defined the "required" action in your validator xml file? "Charles Crouch" 09/25/2005 02:46 PM Please respond to "Jakarta Commons Users List" To commons-user@jakarta.apache.org cc Subject [validator] results with multiple validation actions bug? Hi Just wanted to check whether some behaviour I'm seeing relating to having multiple validation actions on a field is a bug or not. I've set up a form with the following field... I then set the 'lastName' property on the bean I'm validating to... 12345678 and then do... ValidatorResults results = validator.validate(); ValidatorResult lastNameResult = results.getValidatorResult("lastName"); I find that both of the following return true... lastNameResult.containsAction("int"); lastNameResult.isValid("int"); but the following both return false... lastNameResult.isValid("required"); lastNameResult.containsAction("required"); Is the fact that I'm getting false here a bug? Thanks Charles --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --=_alternative 0047AF9685257088_=--