public class LocaleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Locale |
resolveLocale(Object locale,
String clientId)
|
static Locale |
toLocale(String str)
Implementation from Apache Commons Lang
|
public static Locale resolveLocale(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.
locale - given localeCopyright © 2018. All rights reserved.