Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 14, 2007 7:22 PM
To: Tapestry users
Subject: Re: T5: Changing locale within OnActivate event
If it's anything like T4 you'll have to either do a redirect back to
the same page or whatever mechanism is in place to make a page
active somehow
it works. Thanks for the response.
Doug
-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 14, 2007 7:22 PM
To: Tapestry users
Subject: Re: T5: Changing locale within OnActivate event
If it's anything like T4 you'll have to either do
If it's anything like T4 you'll have to either do a redirect back to
the same page or whatever mechanism is in place to make a page
active somehow and have it do that to the same page.
All the i18n stuff probably happens in the very beginning while
setting up the page/components/resources so it
Your code worked for me, except I replaced ThreadLocale by PersistentLocale
@Inject
@Service(PersistentLocale)
private PersistentLocale persistentLocaleService;
then it works using e.g.
persistentLocaleService.set(new Locale(fr));
Karel
petros wrote:
tapestry version 5.0.4
I have the
I have the following link in my html tapestry page
div t:id=englishLocaleLink t:type=ActionLinkEnglish/div
and the following method in the corresponding Java Class but it doesn't get
called when the above link is clicked
@OnEvent(value = action, component = englishLocaleLink)
tapestry version 5.0.4
I have the following code in the html template of my LayoutCmpnt
aa t:id=greekLocaleLink t:type=ActionLinkGreek/aabr/
aa t:id=englishLocaleLink t:type=ActionLinkEnglish/aa
and the following code in the LayoutCmpnt.java
@Inject
@Service(ThreadLocale)
I've been doing some other things, when I get a chance to try it, I'll
share the experience on the list.
Bogdan.
On 3/20/07, alexvs [EMAIL PROTECTED] wrote:
Hi Bogdan,
Were you ever able to change the locale?
Thanks!
Alex
Bogdan Calmac-4 wrote:
Is it possible in Tapestry 5 to
Take a look at the bottom of this page
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html.
/Tapestry does not yet support changing the locale, but that will be
available shortly./
Bogdan Calmac wrote:
Is it possible in Tapestry 5 to programatically change the locale
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
Tapestry does not yet support changing the locale, but that will be
available shortly. The intent is to mimic Tapestry 4 behavior: store a
cookie on the client to provide the default for the locale on the next
visit, and
hey, did you copy my reply or did i copy yours ? :o)
Pablo Ruggia wrote:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
Tapestry does not yet support changing the locale, but that will be
available shortly. The intent is to mimic Tapestry 4 behavior: store a
Thanks guys, I saw that, but there was no mention about the ability to
change the locale at application level. So I can assume that for my
use case I would inject a new service in my page and use it to change
the locale programatically?
Thanks,
Bogdan Calmac.
On 3/9/07, Hugo Palma [EMAIL
I think that comment is out of date.
You should be able to inject the ThreadLocale service and change the
locale there. Tapestry will pick up on that and write out an updated
cookie, which will cause the subsequent render request to be in the
new locale.
On 3/9/07, Bogdan Calmac [EMAIL
12 matches
Mail list logo