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 java.lang.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 java.lang.String FOR_PARAMETER_NAME
           
static java.lang.String INDEX_PARAMETER_NAME
           
static java.lang.String NUMBER_PARAMETER_NAME
           
static java.lang.String TYPE_PARAMETER_NAME
           
 
Constructor Summary
EditableListBean()
           
 
Method Summary
 javax.faces.component.UIComponent getBinding()
           
 java.util.List<java.lang.Object> getDummyList()
          Dummy list of one item, used to wrap a table within another table.
 void performAction(javax.faces.event.ActionEvent event)
           
 void performAction(java.lang.String listComponentId, java.lang.String index, java.lang.String type)
           
 void resetAllListsCachedModels(javax.faces.event.ActionEvent event)
          Resets all UIEditableList components cached model in first container found thanks to given event
 void setBinding(javax.faces.component.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 java.lang.String FOR_PARAMETER_NAME
See Also:
Constant Field Values

INDEX_PARAMETER_NAME

public static final java.lang.String INDEX_PARAMETER_NAME
See Also:
Constant Field Values

TYPE_PARAMETER_NAME

public static final java.lang.String TYPE_PARAMETER_NAME
See Also:
Constant Field Values

NUMBER_PARAMETER_NAME

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

EditableListBean

public EditableListBean()
Method Detail

getBinding

public javax.faces.component.UIComponent getBinding()

setBinding

public void setBinding(javax.faces.component.UIComponent binding)

performAction

public void performAction(java.lang.String listComponentId,
                          java.lang.String index,
                          java.lang.String type)

performAction

public void performAction(javax.faces.event.ActionEvent event)

resetAllListsCachedModels

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

Since:
5.3.1

getDummyList

public java.util.List<java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.