public class UIJavascriptList extends UIEditableList
Modifier and Type | Class and Description |
---|---|
protected static class |
UIJavascriptList.PropertyKeys |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
protected static String |
IS_LIST_TEMPLATE_VAR |
protected static String |
ROW_INDEXES_PARAM |
protected static String |
TEMPLATE_INDEX_MARKER |
diff, model, number, parentList, parentListSet, removeEmpty, template
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Constructor and Description |
---|
UIJavascriptList() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context) |
protected void |
encodeTemplate(javax.faces.context.FacesContext context)
Renders an element using rowIndex -2 and client side marker
TEMPLATE_INDEX_MARKER . |
String |
getContainerClientId(javax.faces.context.FacesContext context)
Override container client id resolution to handle recursion.
|
String |
getFamily() |
int[] |
getRowIndexes() |
protected void |
processFacetsAndChildren(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId) |
void |
setRowIndexes(int[] rowIndexes) |
addValue, broadcast, createEditableModel, encodeBegin, encodeChildren, encodeEnd, flushCachedModel, getCurrencyKeyForInitialStampState, getDiff, getEditableModel, getInternalState, getModel, getNumber, getParentList, getProtectedModel, getRemoveEmpty, getRendererType, getRendersChildren, getRowCount, getRowData, getRowIndex, getRowKey, getStampState, getTemplate, getValue, initializeState, insertValue, invokeOnComponent, isRowAvailable, isRowModified, moveValue, postRowDataChange, preRowDataChange, processComponent, processDecodes, processUpdates, processValidators, queueEvent, recordValueModified, removeValue, resetCachedModel, restoreRequestMapModelValue, restoreState, saveRequestMapModelValue, saveState, setDiff, setModel, setNumber, setRemoveEmpty, setRendererType, setRowIndex, setRowKey, setTemplate, updateModel, valueChanged, visitTree
addValidator, addValueChangeListener, clearInitialState, compareValues, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, validate, validateValue
getConverter, getLocalValue, setConverter
addClientBehavior, addFacesListener, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
protected static final String TEMPLATE_INDEX_MARKER
protected static final String ROW_INDEXES_PARAM
protected static final String IS_LIST_TEMPLATE_VAR
public UIJavascriptList()
public void setRowIndexes(int[] rowIndexes)
public int[] getRowIndexes()
public String getFamily()
getFamily
in class UIEditableList
public String getContainerClientId(javax.faces.context.FacesContext context)
getContainerClientId
in class UIEditableList
protected void encodeTemplate(javax.faces.context.FacesContext context) throws IOException
TEMPLATE_INDEX_MARKER
.
This element will be used on client side by js code to handle addition of a new element.
encodeTemplate
in class UIEditableList
IOException
public void decode(javax.faces.context.FacesContext context)
decode
in class javax.faces.component.UIInput
protected void processFacetsAndChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
processFacetsAndChildren
in class UIEditableList
Copyright © 2015 Nuxeo SA. All rights reserved.