public class LocaleConverter extends Object implements javax.faces.convert.Converter, Serializable
Locale.| Constructor and Description |
|---|
LocaleConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String stringLocale)
Converts the supplied stringLocale to an object of type
Locale. |
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object locale)
Converts the supplied locale to a String.
|
public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String stringLocale)
Locale.getAsObject in interface javax.faces.convert.ConverterfacesContext - Faces Context.component - The UI component that stores the locale.stringLocale - The locale in String format to convert to a Locale.Locale.
public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object locale)
getAsString in interface javax.faces.convert.ConverterfacesContext - Faces Context.component - The UI component that stores the locale.locale - The locale to convert to a String.Locale.Copyright © 2008–2018. All rights reserved.