Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 44491 invoked from network); 23 Nov 2006 09:07:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2006 09:07:37 -0000 Received: (qmail 33828 invoked by uid 500); 23 Nov 2006 09:07:39 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 33736 invoked by uid 500); 23 Nov 2006 09:07:38 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 33709 invoked by uid 99); 23 Nov 2006 09:07:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 01:07:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 01:07:28 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1170F71429F for ; Thu, 23 Nov 2006 01:07:08 -0800 (PST) Message-ID: <29065531.1164272828068.JavaMail.jira@brutus> Date: Thu, 23 Nov 2006 01:07:08 -0800 (PST) From: "Niall Pemberton (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (VALIDATOR-129) Enhance form to handle nested forms (beans) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/VALIDATOR-129?page=all ] Niall Pemberton updated VALIDATOR-129: -------------------------------------- Bugzilla Id: (was: 38133) Summary: Enhance form to handle nested forms (beans) (was: [validator] [patch] Enhance form to handle nested forms (beans)) Fix Version/s: Validator2 > Enhance form to handle nested forms (beans) > ------------------------------------------- > > Key: VALIDATOR-129 > URL: http://issues.apache.org/jira/browse/VALIDATOR-129 > Project: Commons Validator > Issue Type: Improvement > Components: Framework > Affects Versions: 1.2.0 Release > Environment: Operating System: other > Platform: Other > Reporter: Tomasz Bech > Priority: Minor > Fix For: Validator2 > > Attachments: nested-patch-v1.txt > > > It was initialy discussed in the bug > http://issues.apache.org/bugzilla/show_bug.cgi?id=16394 > but I recognized that the author wanted a little bit different feature. > Generally validator doesn't support validation of nested beans/forms. Current > IndexedListProperty implementation allows it only for one nested bean, it is not > sufficient for complex forms/beans (many nested levels), it is rather workaround > than full implementation. It also doesn't correspond to Struts nested tag (and > validator is mainly used by Struts). > Patch is included, it is based on latest validator1.2.0 svn. > Form tag can now include nested tag as (it is in dtd_1.2.1): > > > > > > Example usage is: > > > classname="org.apache.commons.validator.TestValidator" > method="validateByte" > methodParams="java.lang.Object,org.apache.commons.validator.Field" > msg=""/> > > >
> > > > > >
> > > >
>
>
> > > > > >
>
> There is test included (NestedTest.java), see there NestedTest-config.xml and > how to use nested tag. > Currently I tested it in our STRUTS project, it works correctly for 2 level > nested beans. > Please give me any feedback, reports, bugs, etc. I hope that there is a chance > to have it merged in the source base. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org