Additional top-level classes in compilation unit: SavedState, WrapperEvent.
UIData is a UIComponent that
supports data binding to a collection of data objects represented by
a DataModel instance, which is the current value of this
component itself (typically established via a ValueExpression). During iterative processing over the rows of data
in the data model, the object for the current row is exposed as a
request attribute under the key specified by the var
property.
Only children of type UIColumn should
be processed by renderers associated with this component.
By default, the rendererType property is set to
javax.faces.Table. This value can be changed by calling
the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static enum | UIData.PropertyKeys
Properties that are tracked by state saving. |
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private Map | |
| private Map | |
| private String | baseClientId
Holds the base client ID that will be used to generate per-row client IDs (this will be null if this UIData is nested within another). |
| private int | baseClientIdLength
Length of the cached |
| private StringBuilder | clientIdBuilder
StringBuilder used to build per-row client IDs. |
| public static final String | COMPONENT_FAMILY
The standard component family for this component. |
| public static final String | COMPONENT_TYPE
The standard component type for this component. |
| private Boolean | isNested
Flag indicating whether or not this UIData instance is nested within another UIData instance This is not part of the component state. |
| private DataModel | |
| private Object | oldVar
During iteration through the rows of this table, This ivar is used to store the previous "var" value for this instance. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | broadcast(FacesEvent
The event)FacesEvent to be broadcastOverrides javax. Override the default |
| private boolean | |
| private DataModel | |
| public String | createUniqueId(FacesContext
FacesContext context, String an optional seed value - e.g. based on the position of the component in the VDL-template seed)Implements javax. Generate an identifier for a component. |
| private boolean | |
| public void | encodeBegin(FacesContext
FacesContext for the current request context)Overrides javax. In addition to the default behavior, ensure that any saved per-row state for our child input components is discarded unless it is needed to rerender the current page with errors. |
| public String | getClientId(FacesContext
The context)FacesContext for the current requestOverrides javax. Return a client identifier for this component that includes the
current value of the |
| protected DataModel | Returns: the data model.Return the internal |
| private Map | |
| public String | getFamily()
Implements abstract javax. Return the identifier of the component family to which this component belongs. |
| public int | Returns: the row number.Return the zero-relative row number of the first row to be displayed. |
| public UIComponent | |
| public UIComponent | |
| public int | |
| public Object | Returns: the row data.Return the data object representing the data for the currently selected row index, if any. |
| public int | |
| public int | Returns: the number of rows.Return the number of rows to be displayed, or zero for all remaining rows in the table. |
| public Object | |
| public String | Returns: he request-scope attribute.Return the request-scope attribute under which the data object for the current row will be exposed when iterating. |
| public boolean | invokeOnComponent(FacesContext
the context, String FacesContext for the current requestthe client identifier of the component to be passed to the argument
callback. clientId, ContextCallback an implementation of the Callback interface. callback)Overrides javax. Override behavior from |
| private Boolean | |
| public boolean | Returns: whether the row is available.Return a flag indicating whether there is |
| public boolean | Returns: the value of therowStatePreserved.Return the value of the
|
| private void | iterate(FacesContext
FacesContext for the current requestPhaseId of the phase we are currently runningPerform the appropriate phase-specific processing and per-row iteration for the specified phase, as follows:
|
| private boolean | keepSaved(FacesContext
FacesContext for the current requestReturn |
| public void | markInitialState()
Overrides javax. Implements javax. Override the base class method to
take special action if the method is being invoked when |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | processDecodes(FacesContext
FacesContext for the current requestOverrides javax. Override the default |
| public void | processUpdates(FacesContext
FacesContext for the current requestOverrides javax. Override the default |
| public void | processValidators(FacesContext
FacesContext for the current requestOverrides javax. Override the default |
| public void | queueEvent(FacesEvent
FacesEvent to be queuedOverrides javax. Override the default |
| private boolean | Returns: true if row index manipulation is required by the visit to this UIData instancethe ctx)FacesContext for the current requestCalled by |
| private void | |
| private void | restoreDescendantState()
Restore state information for all descendant components, as described
for |
| private void | restoreDescendantState(UIComponent
Component for which to restore state information component, FacesContext FacesContext for the current requestRestore state information for the specified component and its descendants. |
| private void | restoreFullDescendantComponentDeltaStates(FacesContext facesContext, Iterator<UIComponent> childIterator, Object state, Object initialState, boolean restoreChildFacets)
|
| private void | restoreFullDescendantComponentStates(FacesContext facesContext, Iterator<UIComponent> childIterator, Object state, boolean restoreChildFacets)
|
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Overrides javax. Implements javax. Perform any processing required to restore the state from the entries in the state Object. |
| private void | restoreTransientDescendantComponentStates(FacesContext facesContext, Iterator<UIComponent> childIterator, Map<String, Object> state, boolean restoreChildFacets)
|
| private Collection | saveDescendantInitialComponentStates(FacesContext facesContext, Iterator<UIComponent> childIterator, boolean saveChildFacets)
|
| private void | saveDescendantState()
Save state information for all descendant components, as described for
|
| private void | saveDescendantState(UIComponent
Component for which to save state information component, FacesContext FacesContext for the current requestSave state information for the specified component and its descendants. |
| private Map | saveFullDescendantComponentStates(FacesContext facesContext, Map<String, Object> stateMap, Iterator<UIComponent> childIterator, boolean saveChildFacets)
|
| public Object | saveState(FacesContext
the Faces context. context)Overrides javax. Implements javax. Gets the state of the instance as a
|
| private Map | saveTransientDescendantComponentStates(FacesContext facesContext, Map<String, Object> childStates, Iterator<UIComponent> childIterator, boolean saveChildFacets)
|
| protected void | setDataModel(DataModel<E>
the new dataModel)DataModel or null to
cause the model to be refreshed.Set the internal DataModel. |
| public void | setFirst(int
New first row number first)Set the zero-relative row number of the first row to be displayed. |
| public void | |
| public void | |
| public void | setRowIndex(int
The new row index value, or -1 for no associated row rowIndex)Set the zero relative index of the current row, or -1 to indicate that no row is currently selected, by implementing the following algorithm. |
| private void | |
| private void | |
| public void | setRows(int
New number of rows rows)Set the number of rows to be displayed, or zero for all remaining rows in the table. |
| public void | setRowStatePreserved(boolean
the flag if the state should be preserved. preserveComponentState)If this property is set to
|
| public void | |
| public void | setValueBinding(String
Name of the attribute or property for which to set a
name, ValueBinding binding)ValueBindingOverrides javax.
Deprecated
This has been replaced by
setValueExpression(java.lang.String,
javax.el.ValueExpression).
If "name" is something other than "value", "var", or "rowIndex", rely
on the superclass conversion from |
| public void | setValueExpression(String
Name of the attribute or property for which to set a
name, ValueExpression binding)ValueExpressionOverrides javax. Set the |
| public void | |
| private boolean | |
| private boolean | |
| private boolean | |
| public boolean | visitTree(VisitContext
the context, VisitCallback VisitContext that provides
context for performing the visit.the callback to be invoked for each node
encountered in the visit. callback)Overrides javax. Override the behavior
in |