Package de.xima.fc.gui.component.tagify
Class DefaultListConverter
- java.lang.Object
-
- de.xima.fc.gui.component.tagify.DefaultListConverter
-
- All Implemented Interfaces:
IListConverter
public class DefaultListConverter extends Object implements IListConverter
Default converter for the tagify component. It it a no-op and assumes that the model is already a list.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static IListConverter
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
convertToList(Object value)
Converts the model value of the backing bean to a list of tags.Object
convertToObject(List<Object> list)
Converts the list of tags to the model value of the backing bean.
-
-
-
Field Detail
-
INSTANCE
public static final IListConverter INSTANCE
-
-
Method Detail
-
convertToList
public List<Object> convertToList(Object value)
Description copied from interface:IListConverter
Converts the model value of the backing bean to a list of tags. The items in the returned list must be compatible with the converter specified for the tagify component (UIOutput.setConverter(javax.faces.convert.Converter)
).- Specified by:
convertToList
in interfaceIListConverter
- Parameters:
value
- The model value, as returned byUIInput.getValue()
.- Returns:
- A list of tags to render.
-
convertToObject
public Object convertToObject(List<Object> list)
Description copied from interface:IListConverter
Converts the list of tags to the model value of the backing bean. The items in the list are of the same type as returned by the converter specified for the tagify componentUIOutput.getConverter()
.- Specified by:
convertToObject
in interfaceIListConverter
- Parameters:
list
- The current list of tags.- Returns:
- The model value that will be set on the backing bean.
-
-