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;
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