Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`LocaleConfig()`

Method Summary
`String` | `getDefaultLocale()`
`List<String>` | `getSupportedLocales()`
`void` | `initLocaleConfig()`
`static LocaleConfig` | `instance()`
`void` | `setDefaultLocale(String defaultLocale)`
`void` | `setSupportedLocales(List<String> supportedLocales)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LocaleConfig

    public LocaleConfig()

Method Detail

### 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 Seam Framework. All Rights Reserved.