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

Reply via email to