public class ListIndexConverter extends Object implements Converter
ListIndexConverter
automatically converts between the index of an object
and the object itself based on its position in a list that's provided to this converter.
This is a variant of the SelectItemsIndexConverter
. See its Javadoc for further documentation.
Constructor and Description |
---|
ListIndexConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String value) |
String |
getAsString(FacesContext context,
UIComponent component,
Object value) |
void |
setList(List<?> list) |
public Object getAsObject(FacesContext context, UIComponent component, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext context, UIComponent component, Object value)
getAsString
in interface Converter
public void setList(List<?> list)