Re: how to inject PersistentLocale for manage app locales ??

2007-10-14 Thread Nick Westgate
I can't check the code right now, but pageAttached may be too early. Try either onActivate or setupRender. Cheers, Nick. Mohammad Shamsi wrote: i wrote this code to change locale, but i got NullPointerException, any idea please? public class Start { @Inject PersistentLocale locale;

how to inject PersistentLocale for manage app locales ??

2007-10-14 Thread Mohammad Shamsi
i wrote this code to change locale, but i got NullPointerException, any idea please? public class Start { @Inject PersistentLocale locale; @PageAttached public void attached() { locale.set(Locale.GERMAN); } } -- sincerely yours M. H. Shamsi