Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.component.list
Class EditableListBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.component.list.EditableListBean

public class EditableListBean
extends Object

Bean used to interact with UIEditableList component.

Used to add/remove items from a list.

Optionally used to work around some unwanted behaviour in data tables.

Author:
Anahide Tchertchian

Field Summary
static String FOR_PARAMETER_NAME
           
static String INDEX_PARAMETER_NAME
           
static String NUMBER_PARAMETER_NAME
           
static String TYPE_PARAMETER_NAME
           
 
Constructor Summary
EditableListBean()
           
 
Method Summary
 UIComponent getBinding()
           
 List<Object> getDummyList()
          Dummy list of one item, used to wrap a table within another table.
 void performAction(ActionEvent event)
           
 void performAction(String listComponentId, String index, String type)
           
 void resetAllListsCachedModels(ActionEvent event)
          Resets all UIEditableList components cached model in first container found thanks to given event
 void setBinding(UIComponent binding)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOR_PARAMETER_NAME

public static final String FOR_PARAMETER_NAME
See Also:
Constant Field Values

INDEX_PARAMETER_NAME

public static final String INDEX_PARAMETER_NAME
See Also:
Constant Field Values

TYPE_PARAMETER_NAME

public static final String TYPE_PARAMETER_NAME
See Also:
Constant Field Values

NUMBER_PARAMETER_NAME

public static final String NUMBER_PARAMETER_NAME
See Also:
Constant Field Values
Constructor Detail

EditableListBean

public EditableListBean()
Method Detail

getBinding

public UIComponent getBinding()

setBinding

public void setBinding(UIComponent binding)

performAction

public void performAction(String listComponentId,
                          String index,
                          String type)

performAction

public void performAction(ActionEvent event)

resetAllListsCachedModels

public void resetAllListsCachedModels(ActionEvent event)
Resets all UIEditableList components cached model in first container found thanks to given event

Since:
5.3.1

getDummyList

public List<Object> getDummyList()
Dummy list of one item, used to wrap a table within another table.

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.

Returns:
dummy list of one item

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.