[jboss-user] [JBoss Seam] - Changing Locale in Seam?

tonylmai do-not-reply at jboss.com
Wed Feb 28 18:43:18 EST 2007


I have the following code


  | public class LocalChanger {
  | 	public String englishAction() {
  | 		FacesContext context = FacesContext.getCurrentInstance();
  | 		context.getViewRoot().setLocale(Locale.ENGLISH);
  | 		return NavigationRuleNames.DISPLAY_SAME_PAGE;
  | 	}
  | 
  |         public String otherLangAction() {
  |                 ....
  |         }
  | 

Yet some how when I navigate around, the locale is being set back to the default Locale.

Is there a better way to do it with Seam?

Thanks

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024024



More information about the jboss-user mailing list