org.jboss.seam.international
Class LocaleConfig
java.lang.Object
org.jboss.seam.international.LocaleConfig
@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
Configures the JSF locale support from the Seam container.
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"/>
- Author:
- Dan Allen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleConfig
public LocaleConfig()
initLocaleConfig
@Create
public void initLocaleConfig()
getDefaultLocale
public String getDefaultLocale()
setDefaultLocale
public void setDefaultLocale(String defaultLocale)
getSupportedLocales
public List<String> getSupportedLocales()
setSupportedLocales
public void setSupportedLocales(List<String> supportedLocales)
instance
public static LocaleConfig instance()
Copyright © 2011 Seam Framework. All Rights Reserved.