Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 75627 invoked from network); 21 Apr 2008 19:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Apr 2008 19:40:27 -0000 Received: (qmail 94469 invoked by uid 500); 21 Apr 2008 19:40:27 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 94456 invoked by uid 500); 21 Apr 2008 19:40:27 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Received: (qmail 94445 invoked by uid 99); 21 Apr 2008 19:40:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 12:40:27 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2008 19:39:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Jo1rn-0008Az-SG for user@beehive.apache.org; Mon, 21 Apr 2008 12:39:55 -0700 Message-ID: <16810243.post@talk.nabble.com> Date: Mon, 21 Apr 2008 12:39:55 -0700 (PDT) From: djkuul To: user@beehive.apache.org Subject: Re: Validating indexed properties, nested properties... In-Reply-To: <16765604.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dhwajad@hotmail.com References: <16765604.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I will try to elaborate the problem- 1. Department and Employee data is to be displayed to the User. 2. The ActionFormBean has an ArrayList of Department objects. 3. Each Department Object has an ArrayList of Employee Objects. 4. The user can modify Employee data for example- Salary (int). 5. The action method is decorated with appropriate validation annotations say @Jpf.ValidateRequired. 6. Now to apply the Validate Required to the salary field of the Employee object what should the propertyName of the @Jpf.ValidateRequired be set to? Is it possible to do validations of indexed, nested and mapped properties WITHOUT- 1. writing custom validations, so as to use the existing validations provided by beehive. 2. without decorating the individual getter property with the validation annotation, since we may not always be able to edit the Department and Employee Classes. Appreciate any suggestions/ thoughts... djkuul wrote: > > One more question regarding validations- > > How to validate indexed properties, nested properties and mapped > properties? Can this be done without writing a custom validator? > Essentially I would like to use the existing validation annotations like > the Jpf.ValidateRequired, Jpf.ValidateEmail etc. but on indexed and > nested properties of an Action Form. > > Thanks. > -- View this message in context: http://www.nabble.com/Validating-indexed-properties%2C-nested-properties...-tp16765604p16810243.html Sent from the Beehive - User mailing list archive at Nabble.com.