• cdi
  • components
  • contexts
  • converters
  • el
  • eventlisteners
  • exceptionhandlers
  • facesviews
  • filters
  • functions
  • managedbeans
  • push
  • resourcehandlers
  • scripts
  • servlets
  • taghandlers
  • utils
  • validators
  • viewhandlers
 - 
  • GenericEnumConverter
  • ListConverter
  • ListIndexConverter
  • SelectItemsConverter
  • SelectItemsIndexConverter
  • ToCollectionConverter
  • ToLowerCaseConverter
  • ToUpperCaseConverter
  • TrimConverter
  • ValueChangeConverter

Available since OmniFaces 2.6

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().

Usage

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" />