public class ToLowerCaseConverter extends TrimConverter
The omnifaces.ToLowerCaseConverter is intented to convert submitted String values to lower case
based on current Locale. Additionally, it trims any whitespace from the submitted value. This is useful for
among others email address inputs.
This converter does by design no conversion in getAsString().
This converter is available by converter ID omnifaces.ToLowerCaseConverter. Just specify it in the
converter attribute of the component referring the String property. For example:
<h:inputText value="#{bean.email}" converter="omnifaces.ToLowerCaseConverter" />
TrimConverterDATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME| Constructor and Description |
|---|
ToLowerCaseConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String submittedValue) |
getAsStringpublic Object getAsObject(FacesContext context, UIComponent component, String submittedValue)
getAsObject in interface ConvertergetAsObject in class TrimConverterCopyright © 2012–2018 OmniFaces. All rights reserved.