|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.infragistics.faces.shared.component.DataRepeater
This class is the base class for components that can be bound to a DataModel (for instance a grid component).
Children component can refer to a row of the DataModel using the string "DATA_ROW" in EL expressions (ie: ... value="#{DATA_ROW.firstName}" ... ).
Note that bindings of the component and children components are only evaluated when the component is first bound to the DataModel. This
avoid unecessary bindings and considerably increase performance of DataBound component.
If needed, bindings can be refreshed at any time by calling the method dataBind().
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
DATA_ROW
|
static java.lang.String |
RENDERER_TYPE
|
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
DataRepeater()
|
|
| Method Summary | |
void |
broadcast(javax.faces.event.FacesEvent event)
|
void |
dataBind()
Binds the component to its data source and evaluate its bindings |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
void |
encodeEnd(javax.faces.context.FacesContext context)
|
java.lang.String |
getDataKeyName()
Returns the name of the field(s) that uniquely identifies each record in the data source. |
static java.lang.Object |
getDataKeyValue(javax.faces.component.UIComponent component)
Return the DataKeyValue of the DataRow that the specified UIComponent is bound-to. |
javax.faces.model.DataModel |
getDataSource()
Returns the data source the component is bound-to. |
java.lang.String |
getFamily()
|
java.util.List |
getTemplateItems()
Return a list of components to use as template for each row of the data model The list has been previously saved as an attribute under the key TEMPLATE_ITEM |
void |
processUpdates(javax.faces.context.FacesContext context)
|
void |
processValidators(javax.faces.context.FacesContext context)
|
void |
queueEvent(javax.faces.event.FacesEvent event)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setDataKeyName(java.lang.String dataKeyName)
Sets the name of the field(s) that uniquely identify each record in the data source. |
void |
setDataSource(javax.faces.model.DataModel model)
Sets the data source this component is bound-to |
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
|
| Methods inherited from class javax.faces.component.UIComponentBase |
decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String COMPONENT_FAMILY
public static java.lang.String COMPONENT_TYPE
public static final java.lang.String DATA_ROW
public static java.lang.String RENDERER_TYPE
| Constructor Detail |
public DataRepeater()
| Method Detail |
public static java.lang.Object getDataKeyValue(javax.faces.component.UIComponent component)
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
javax.faces.event.AbortProcessingExceptionpublic void dataBind()
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
java.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getDataKeyName()
public javax.faces.model.DataModel getDataSource()
DataModel the component is bound-topublic java.lang.String getFamily()
public java.util.List getTemplateItems()
public void processUpdates(javax.faces.context.FacesContext context)
public void processValidators(javax.faces.context.FacesContext context)
public void queueEvent(javax.faces.event.FacesEvent event)
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void setDataKeyName(java.lang.String dataKeyName)
public void setDataSource(javax.faces.model.DataModel model)
model -
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||