org.apache.myfaces.util
public class LocaleUtils extends Object
Version: $Revision$ $Date$
Method Summary | |
---|---|
static Locale | converterTagLocaleFromString(String name)
Convert locale string used by converter tags to locale.
|
static Locale | toLocale(String localeString)
Converts a locale string to Locale class. |
Parameters: name name of the locale
Returns: locale specified by the given String
See Also: org.apache.myfaces.taglib.core.ConvertDateTimeTag#setConverterLocale org.apache.myfaces.taglib.core.ConvertNumberTag#setConverterLocale
Locale
class. Accepts both
'_' and '-' as separators for locale components.
Parameters: localeString string representation of a locale
Returns: Locale instance, compatible with the string representation