Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 86346 invoked from network); 28 May 2004 21:56:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 May 2004 21:56:59 -0000 Received: (qmail 36330 invoked by uid 500); 28 May 2004 21:56:56 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 35827 invoked by uid 500); 28 May 2004 21:56:48 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 35373 invoked by uid 98); 28 May 2004 21:56:43 -0000 Received: from joerg.heinicke@gmx.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(213.165.64.20):. Processed in 0.13951 secs); 28 May 2004 21:56:43 -0000 X-Qmail-Scanner-Mail-From: joerg.heinicke@gmx.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(213.165.64.20):. Processed in 0.13951 secs) Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by hermes.apache.org with SMTP; 28 May 2004 21:56:43 -0000 Received: (qmail 5047 invoked by uid 65534); 28 May 2004 21:56:08 -0000 Received: from A71a8.a.pppool.de (EHLO gmx.de) (213.6.113.168) by mail.gmx.net (mp027) with SMTP; 28 May 2004 23:56:08 +0200 X-Authenticated: #3483660 Message-ID: <40B7B622.4060205@gmx.de> Date: Fri, 28 May 2004 23:58:58 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: dev@cocoon.apache.org CC: users@cocoon.apache.org Subject: Re: Adding a global validation message to a form? References: <20040527231309.87242.qmail@web11505.mail.yahoo.com> <40B67C0E.9000506@gmx.de> <40B70547.2000501@upaya.co.uk> <1085767629.7940.23.camel@yum> In-Reply-To: <1085767629.7940.23.camel@yum> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Moving this to dev list. Find the original thread at http://marc.theaimsgroup.com/?t=108559109700004&r=1&w=4. On 28.05.2004 20:13, Bruno Dumon wrote: > I'm not sure if this is a good > solution, since those messages are not specifically recognized as being > validation errors, and so this wouldn't work together with > fi:validation-errors. Maybe the best would be to allow adding validation > errors (multiple ones) on the form itself. The form itself becomes ValidationErrorAware? I searched for it when thinking about a solution, but unfortunately the form is not implementing the interface. So +1. > fi:validation-errors would > then better be replaced with a ft:validation-errors (which can crawl the > widget tree), since otherwise it wouldn't find the errors attached to > the form. Hmm, I guess it is also possible to add a fi:validation-message to the form widget as it is done for all other widgets. It must be possible to differ between form widget (= global) validation errors, collected "somewhere" and widget specific errors. In other words I do not want to be forced to collect all errors at one place just because of using ft:validation-errors for the global errors. But +1 for the idea in general. Joerg