You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mohammad Shamsi <m....@gmail.com> on 2007/10/14 23:17:59 UTC
how to inject PersistentLocale for manage app locales ??
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
Re: how to inject PersistentLocale for manage app locales ??
Posted by Nick Westgate <ni...@key-planning.co.jp>.
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;
>
> @PageAttached
> public void attached() {
> locale.set(Locale.GERMAN);
> }
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org