public abstract class AStringListConverter extends Object implements IListConverter
Tagify component. It converts a list of strings to a string by joining each string,
separated by the given main delimiter.
Extend this class and override split(String) to implement the desired splitting behavior.
| Constructor and Description |
|---|
AStringListConverter(char mainDelimiter) |
| Modifier and Type | Method and 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.
|
protected char |
getMainDelimiter() |
protected abstract Iterator<String> |
split(String value) |
public final List<Object> convertToList(Object value)
IListConverterUIOutput.setConverter(javax.faces.convert.Converter)).convertToList in interface IListConvertervalue - The model value, as returned by UIInput.getValue().public final Object convertToObject(List<Object> list)
IListConverterUIOutput.getConverter().convertToObject in interface IListConverterlist - The current list of tags.protected final char getMainDelimiter()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.