org.jboss.seam.international
@Scope(value=APPLICATION) @BypassInterceptors @Startup @Name(value="org.jboss.seam.international.localeConfig") @Install(value=false, precedence=0, classDependencies="javax.faces.context.FacesContext") public class LocaleConfig extends Object
This component merely passes on configuration settings to the JSF runtime, so you still have to option of configure the locale support in the JSF configuration file. However, if you enable this component, it will overwrite any settings from that file.
<i18n:locale-config default-locale="en" supported-locales="en fr de"/>
Constructor and Description |
---|
LocaleConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultLocale() |
List<String> |
getSupportedLocales() |
void |
initLocaleConfig() |
static LocaleConfig |
instance() |
void |
setDefaultLocale(String defaultLocale) |
void |
setSupportedLocales(List<String> supportedLocales) |
@Create public void initLocaleConfig()
public String getDefaultLocale()
public void setDefaultLocale(String defaultLocale)
public static LocaleConfig instance()
Copyright © 2015 Seam Framework. All Rights Reserved.