Class VectorConverter

java.lang.Object
org.imixs.workflow.faces.util.VectorConverter
All Implemented Interfaces:
jakarta.faces.convert.Converter

public class VectorConverter extends Object implements jakarta.faces.convert.Converter
The VectorConverter can be used to convert a new-line separated list into a vecotr and vice versa.

usage:

<h:inputTextarea value="#{value}" converter="org.imixs.VectorConverter" />

  • Field Summary

    Fields inherited from interface jakarta.faces.convert.Converter

    DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAsObject(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, String value)
     
    getAsString(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, Object value)
    Converts a List of objects into a comma separated String

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VectorConverter

      public VectorConverter()
  • Method Details

    • getAsObject

      public Object getAsObject(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, String value) throws jakarta.faces.convert.ConverterException
      Specified by:
      getAsObject in interface jakarta.faces.convert.Converter
      Throws:
      jakarta.faces.convert.ConverterException
    • getAsString

      public String getAsString(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent component, Object value) throws jakarta.faces.convert.ConverterException
      Converts a List of objects into a comma separated String
      Specified by:
      getAsString in interface jakarta.faces.convert.Converter
      Throws:
      jakarta.faces.convert.ConverterException