Package org.omnifaces.converter
Class ToLowerCaseConverter
- java.lang.Object
- 
- org.omnifaces.converter.TrimConverter
- 
- org.omnifaces.converter.ToLowerCaseConverter
 
 
- 
 public class ToLowerCaseConverter extends TrimConverter The omnifaces.ToLowerCaseConverteris intented to convert submittedStringvalues to lower case based on currentLocale. 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().UsageThis converter is available by converter ID omnifaces.ToLowerCaseConverter. Just specify it in theconverterattribute of the component referring theStringproperty. For example:<h:inputText value="#{bean.email}" converter="omnifaces.ToLowerCaseConverter" />- Since:
- 2.6
- Author:
- Bauke Scholtz
- See Also:
- TrimConverter
 
- 
- 
Field Summary- 
Fields inherited from interface jakarta.faces.convert.ConverterDATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description ToLowerCaseConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAsObject(FacesContext context, UIComponent component, String submittedValue)- 
Methods inherited from class org.omnifaces.converter.TrimConvertergetAsString
 
- 
 
- 
- 
- 
Method Detail- 
getAsObjectpublic String getAsObject(FacesContext context, UIComponent component, String submittedValue) - Specified by:
- getAsObjectin interface- Converter<String>
- Overrides:
- getAsObjectin class- TrimConverter
 
 
- 
 
-