I have same problem and I have AppModule.class under xxx.yyy.services

 public static void contributeApplicationDefaults(
            MappedConfiguration<String, String> configuration) {
        configuration.add("tapestry.supported-locales", "en,de"); 
    }

this is added in my class.When I put breakpoint here it doesnt stop there
why? and locale still set "en"



dalahoo wrote:
> 
> Hi Nick,
> 
> I have just a Start Page, and 2 Property Files (Start.properties,
> Start_de.properties)
> 
> i have an actionlinke in page to change Locale,
> 
> here is my code in Start.java class to change locale :
> 
> @Inject
> private PersistentLocale persistentLocale;
> 
>  public void onActionFromChangeLocale(String language)
> 
>>  {
>>          persistentLocale.set(new Locale(language));
>>  }
> 
> 
> when i debug this code, persistenceLocale changed to German, but i see
> English Locale (Default Locale) again
> 
> On 10/16/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
>>
>> The docs are out of date, hence the wiki.
>>
>> "Don't effect" is not specific enough. Give us the info to help you.
>> What are you trying do? What are the names of your localized files?
>> How is this event being invoked from your .tml file?
>>
>> Cheers,
>> Nick.
>>
>>
>> Mohammad Shamsi wrote:
>> > i was read in tapestry localization guide that : Tapestry does not yet
>> > support changing the locale, but that will be available shortly.
>> >
>> > but in wiki T5 Howto, i read a guide to changing locale  in tapestry,
>> look
>> > at code :
>> >
>> > @Inject
>> > private PersistentLocale persistentLocale;
>> >
>> > public void onActionFromChangeLocale(String language)
>> > {
>> >         persistentLocale.set(new Locale(language));
>> > }
>> >
>> >
>> > but change locale here, don't effect on my pages :( , any idea ?
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> sincerely yours
> M. H. Shamsi
> 
> 

-- 
View this message in context: 
http://www.nabble.com/can-i-change-locale-manually-or-not-----tp13213087p16048100.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to