Package org.imixs.workflow.faces.util
Class VectorConverter
java.lang.Object
org.imixs.workflow.faces.util.VectorConverter
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptiongetAsObject
(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
-
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 interfacejakarta.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 interfacejakarta.faces.convert.Converter
- Throws:
jakarta.faces.convert.ConverterException
-