Class StringTrimmerConverter

java.lang.Object
com.kheops.jmap.server.webadmin.faces.converters.StringTrimmerConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class StringTrimmerConverter extends Object implements javax.faces.convert.Converter
Converter to solve general problem of blank spaces in literal identifiers (names) of JMap entities. It guarantees that names will arrive to bean properties already trimmed.
  • Constructor Details

    • StringTrimmerConverter

      public StringTrimmerConverter()
  • Method Details

    • getAsObject

      public Object getAsObject(javax.faces.context.FacesContext ctx, javax.faces.component.UIComponent component, String value)
      Specified by:
      getAsObject in interface javax.faces.convert.Converter
    • getAsString

      public String getAsString(javax.faces.context.FacesContext ctx, javax.faces.component.UIComponent component, Object value)
      Specified by:
      getAsString in interface javax.faces.convert.Converter