public class LocaleUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Locale |
getCurrentLocale() |
static Locale |
getCurrentLocale(javax.faces.context.FacesContext context) |
static String |
getDecimalSeparator(javax.faces.context.FacesContext context) |
static String |
getThousandSeparator(javax.faces.context.FacesContext context) |
static Locale |
resolveLocale(javax.faces.context.FacesContext context,
Object locale,
String clientId)
|
static Locale |
toLocale(String str)
Implementation from Apache Commons Lang
|
public static Locale resolveLocale(javax.faces.context.FacesContext context, Object locale, String clientId)
Locale
instance by the value of the component attribute "locale" which can be String or Locale
or null.
If NULL is passed the view root default locale is used.
context
- the FacesContext
locale
- given localeclientId
- the component clientIdpublic static Locale getCurrentLocale(javax.faces.context.FacesContext context)
public static Locale getCurrentLocale()
public static String getDecimalSeparator(javax.faces.context.FacesContext context)
public static String getThousandSeparator(javax.faces.context.FacesContext context)
Copyright © 2020. All rights reserved.