Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 75593 invoked from network); 10 Feb 2004 01:53:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Feb 2004 01:53:12 -0000 Received: (qmail 81513 invoked by uid 500); 10 Feb 2004 01:52:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 81492 invoked by uid 500); 10 Feb 2004 01:52:42 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 81458 invoked from network); 10 Feb 2004 01:52:41 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 10 Feb 2004 01:52:41 -0000 Received: (qmail 22244 invoked by uid 65534); 10 Feb 2004 01:52:48 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp015) with SMTP; 10 Feb 2004 02:52:48 +0100 X-Authenticated: #3483660 Message-ID: <40283983.2060304@gmx.de> Date: Tue, 10 Feb 2004 02:53:07 +0100 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: users@cocoon.apache.org Subject: Re: i18n - how to get localized message after form validation References: <20040209111759.0f662e55.Joern.Wallstabe@igd-r.fraunhofer.de> In-Reply-To: <20040209111759.0f662e55.Joern.Wallstabe@igd-r.fraunhofer.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 09.02.2004 12:17, Joern Wallstabe wrote: > Hi everyone, > > I'm using woody and I have to use flow validation functions for form validation. In which way do you use them? > How can I get a localized (!!) message from these function back in my form if validation fails ? I ask, because if you do it like in the updated sample [1] via ValidationError object, the first parameter is either already localized text or an i18n key. It depends on the second parameter set to true or false. For details have a look into the ValidationError class [2]. > Can I achive this by using i18n transformer functionality ? This one is for transforming the i18n elements into localized messages. The problem seems to be more to get the i18n elements into your XML structure. Joerg [1] http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/samples/forms/form1.xml?annotate=1.20#235 [2] http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/validation/ValidationError.java?annotate=1.1#50 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org