Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Injection of LocaleSelector does not
 work in 1.2.1GA

scott.stark@jboss.org

2007-05-03


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042966#4042966

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042966
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.