The following code used to work when I first tried it with 1.1.6GA. Now, the the injection of LocaleSelector no longer works. The value is null.
Any idea?
Thanks
public class LocaleChanger { @In LocaleSelector localeSelector; @Logger Log log; public String englishAction() { assert (localeSelector != null) : "Seam Injection did not work."; if (localeSelector != null) { localeSelector.setLocale(java.util.Locale.ENGLISH); } else { log.fatal("Seam Injection did not work. LocaleSelector was null."); } return NavigationRuleNames.DISPLAY_SAME_PAGE; }
you probably need create=true on that @In