public class EditableListBean extends Object
UIEditableList
component.
Used to add/remove items from a list.
Optionally used to work around some unwanted behaviour in data tables.
Modifier and Type | Field and Description |
---|---|
static String |
FOR_PARAMETER_NAME |
static String |
INDEX_PARAMETER_NAME |
static String |
NUMBER_PARAMETER_NAME |
static String |
TYPE_PARAMETER_NAME |
Constructor and Description |
---|
EditableListBean() |
Modifier and Type | Method and Description |
---|---|
javax.faces.component.UIComponent |
getBinding() |
List<Object> |
getDummyList()
Dummy list of one item, used to wrap a table within another table.
|
void |
performAction(javax.faces.event.ActionEvent event) |
void |
performAction(javax.faces.event.AjaxBehaviorEvent event) |
void |
performAction(String listComponentId,
String index,
String type) |
void |
resetAllListsCachedModels(javax.faces.event.ActionEvent event)
Deprecated.
since 5.6: the component resets its cache correctly after update now so forcing the reset is now
useless
|
void |
setBinding(javax.faces.component.UIComponent binding) |
public static final String FOR_PARAMETER_NAME
public static final String INDEX_PARAMETER_NAME
public static final String TYPE_PARAMETER_NAME
public static final String NUMBER_PARAMETER_NAME
public javax.faces.component.UIComponent getBinding()
public void setBinding(javax.faces.component.UIComponent binding)
public void performAction(javax.faces.event.ActionEvent event)
public void performAction(javax.faces.event.AjaxBehaviorEvent event)
@Deprecated public void resetAllListsCachedModels(javax.faces.event.ActionEvent event)
UIEditableList
components cached model in first container found thanks to given eventpublic List<Object> getDummyList()
A table resets its saved state when decoding, which is a problem when saving a file temporarily: as it will not be submitted again in the request, the new value will be lost. The table is not reset when embedded in another table, so we can use this list as value of the embedding table as a work around.
Copyright © 2015 Nuxeo SA. All rights reserved.