RE: T5: Changing locale within OnActivate event

2007-08-17 Thread Doug Hauge
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

Re: T5: Changing locale within OnActivate event

2007-08-17 Thread Jesse Kuhnert
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

Re: T5: Changing locale within OnActivate event

2007-08-14 Thread Jesse Kuhnert
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

Re: T5 - Changing Locale

2007-07-08 Thread yosemite
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

Re: T5 - Changing Locale

2007-05-10 Thread petros
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)

Re: T5 - Changing Locale

2007-05-10 Thread petros
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)

Re: T5 - Changing Locale

2007-03-21 Thread Bogdan Calmac
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

Re: T5 - Changing Locale

2007-03-09 Thread Hugo Palma
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

Re: T5 - Changing Locale

2007-03-09 Thread Pablo Ruggia
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

Re: T5 - Changing Locale

2007-03-09 Thread Hugo Palma
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

Re: T5 - Changing Locale

2007-03-09 Thread Bogdan Calmac
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

Re: T5 - Changing Locale

2007-03-09 Thread Howard Lewis Ship
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