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

tonylmai do-not-reply at jboss.com
Thu May 3 16:25:06 EDT 2007


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



More information about the jboss-user mailing list