Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 28764 invoked from network); 1 Sep 2005 23:00:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 23:00:00 -0000 Received: (qmail 85330 invoked by uid 500); 1 Sep 2005 22:59:55 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 85319 invoked by uid 500); 1 Sep 2005 22:59:55 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 85306 invoked by uid 99); 1 Sep 2005 22:59:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 15:59:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chiappone@gmail.com designates 64.233.162.201 as permitted sender) Received: from [64.233.162.201] (HELO zproxy.gmail.com) (64.233.162.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 16:00:09 -0700 Received: by zproxy.gmail.com with SMTP id l1so301633nzf for ; Thu, 01 Sep 2005 15:59:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ww828PCkdc2hBUaO1qavqmeJVmIuXJ3M83Ot1F6ANMTgUawGrFEgKLd1ZTeuoPvIhc39xEe1KDOYYytV7C1zCyLBWybAcGsvZUehyrZ9WWcbYJqMVt9qRkRiRseRrR2BKQcZe2c+rimgJTpzFL8PuLx/poDI9ryKadj05tVaFc4= Received: by 10.36.68.15 with SMTP id q15mr1802215nza; Thu, 01 Sep 2005 15:59:53 -0700 (PDT) Received: by 10.36.12.19 with HTTP; Thu, 1 Sep 2005 15:59:53 -0700 (PDT) Message-ID: <43b590fa050901155932581594@mail.gmail.com> Date: Thu, 1 Sep 2005 18:59:53 -0400 From: Chris Chiappone To: Tapestry users Subject: Re: simple localization question In-Reply-To: <55a67ba305090114481f81004a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <431771AE.70408@fr.st> <55a67ba305090114481f81004a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N you could also just use if its a static error from your properties file. On 9/1/05, Ted Steen wrote: > If you write "message:page.error" tapestry will look for a message > called "page.error", that is it will look in your .properties file for > that message. > If you want to dynamically choose the message I think the best thing > would be to do like this: >=20 > >=20 > public String getPageError() { > return getMessages().getMessage(getMyErrorMessage()); > } >=20 > This might be a case of blind leading the blind, and I also don't > understand why you would like to do this thing :) >=20 > On 9/1/05, Jean-Yves Sironneau wrote: > > Hello, > > > > I have a simple question, when an error occurs in one of my pages i set > > an attribute to a string that should be localized, but in my templat= e > > i don't konw how to insert it, i tried > > > > > > > > but the page.error is resolved as a literal, noot an ognl expression. > > > > > > Thank you > > > > Jean-Yves > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org > > > > >=20 >=20 > -- > /ted >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org >=20 >=20 --=20 ~chris --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org