Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 47549 invoked from network); 30 Jul 2009 19:10:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 19:10:17 -0000 Received: (qmail 49171 invoked by uid 500); 30 Jul 2009 19:10:17 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 49134 invoked by uid 500); 30 Jul 2009 19:10:17 -0000 Mailing-List: contact dev-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry development" Delivered-To: mailing list dev@tapestry.apache.org Received: (qmail 49124 invoked by uid 99); 30 Jul 2009 19:10:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 19:10:17 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Thu, 30 Jul 2009 19:10:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MWb0c-0004ON-3U for dev@tapestry.apache.org; Thu, 30 Jul 2009 12:09:46 -0700 Message-ID: <24745488.post@talk.nabble.com> Date: Thu, 30 Jul 2009 12:09:46 -0700 (PDT) From: marcanti To: dev@tapestry.apache.org Subject: Re: Using persistentLocale to change page locale is not working for me. In-Reply-To: <24739247.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mario_luis_gomes@yahoo.com References: <24739247.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I see that the locale is stored in the URL... But in my case I need it to work without the locale being stored in the URL, is there an easy way of doing this? marcanti wrote: > > I want to change the locale based on a language code retrieved from a > cookie, so I am doing the following: > > public void setupRender() { > ..... > language = cookie.getValue(); > persistentLocale.set(new Locale(language)); > } > > The above is not working. The messages on the page stays the same and when > reloading the page the locale is reset to the default locale. What am I > doing wrong here? > > I have checked that the locale is set correclty on persistentLocale using > persistentLocale.get().getLanguage(). I also noticed that tapestry dont > set any cookies, so were is the locale persisted, in the session or what? > And why is the locale set back to the default value? > -- View this message in context: http://www.nabble.com/Using-persistentLocale-to-change-page-locale-is-not-working-for-me.-tp24739247p24745488.html Sent from the Tapestry - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org For additional commands, e-mail: dev-help@tapestry.apache.org