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 |
---|---|
protected javax.faces.component.UIComponent |
binding |
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.
|
protected static UIEditableList |
getEditableListComponent(javax.faces.component.UIComponent component,
Map<String,String> requestMap) |
protected static Integer |
getIndex(Map<String,String> requestMap) |
protected static EditableListModificationType |
getModificationType(Map<String,String> requestMap) |
protected static Integer |
getNumber(Map<String,String> requestMap) |
protected static String |
getParameterValue(Map<String,String> requestMap,
String parameterName) |
void |
performAction(javax.faces.event.ActionEvent event) |
void |
performAction(javax.faces.event.AjaxBehaviorEvent event) |
protected void |
performAction(javax.faces.event.FacesEvent event) |
void |
performAction(String listComponentId,
String index,
String type) |
protected static void |
performAction(javax.faces.component.UIComponent binding,
Map<String,String> requestMap) |
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
|
protected void |
resetListCachedModels(javax.faces.component.UIComponent parent)
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
protected javax.faces.component.UIComponent binding
public EditableListBean()
public javax.faces.component.UIComponent getBinding()
public void setBinding(javax.faces.component.UIComponent binding)
public void performAction(String listComponentId, String index, String type)
public void performAction(javax.faces.event.ActionEvent event)
public void performAction(javax.faces.event.AjaxBehaviorEvent event)
protected void performAction(javax.faces.event.FacesEvent event)
@Deprecated public void resetAllListsCachedModels(javax.faces.event.ActionEvent event)
UIEditableList
components cached model in first container found thanks to given event@Deprecated protected void resetListCachedModels(javax.faces.component.UIComponent parent)
protected static void performAction(javax.faces.component.UIComponent binding, Map<String,String> requestMap)
protected static String getParameterValue(Map<String,String> requestMap, String parameterName)
protected static UIEditableList getEditableListComponent(javax.faces.component.UIComponent component, Map<String,String> requestMap)
protected static EditableListModificationType getModificationType(Map<String,String> requestMap)
public 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 © 2018 Nuxeo. All rights reserved.