|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase com.ibm.xsp.component.UIRepeat
public class UIRepeat
This is the xp:repeat tag when repeatControls="true", when the check box "Create controls at page creation" is checked. UIRepeat 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 ValueBinding). This component is responsible for the creation of it's own children. It does this by iterating over the data in the data model, and for each row it create a panel which will contain one instance of each of it's children. The repeated panel has a data context corresponding to the data object for the current row. This data will be is exposed as a request attribute under the key specified by the var property. Not intended to be subclassed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
INDEX
|
static java.lang.String |
RENDERER_TYPE
|
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Constructor Summary | |
---|---|
UIRepeat()
Create a new UIRepeat instance with default property values. |
Method Summary | |
---|---|
void |
_xspCleanTransientData()
|
void |
addAttr(Attr attr)
Add an Attr , to appear as an attribute in the HTML output of this control
or object tag. |
void |
broadcast(javax.faces.event.FacesEvent event)
|
void |
buildContents(javax.faces.context.FacesContext context,
FacesComponentBuilder builder)
Build the component children and facets, the default implementation is usually: builder.buildAll(context, this, true); // includeFacets=true |
void |
encodeChildren(javax.faces.context.FacesContext context)
|
java.util.List<Attr> |
getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. |
javax.faces.model.DataModel |
getDataModel()
|
java.lang.String |
getDir()
|
java.lang.String |
getFamily()
|
int |
getFirst()
Return the value of the first property. |
java.lang.String |
getIndexVar()
|
int |
getRowCount()
Return the number of rows in the underlying data model. |
int |
getRowIndex()
Return the index of the current row the underlying data model. |
int |
getRows()
Return the value of the rows property. |
java.lang.Object |
getValue()
Return the value of the repeat panel. |
java.lang.String |
getVar()
|
boolean |
gotoFirstPage()
Always fails with an exception, may be accidentally called when the application designer intended to use com.ibm.xsp.component.UIDataIterator.gotoFirstPage(). |
boolean |
gotoLastPage()
Always fails with an exception, may be accidentally called when the application designer intended to use com.ibm.xsp.component.UIDataIterator.gotoLastPage(). |
boolean |
gotoNextPage()
Always fails with an exception, may be accidentally called when the application designer intended to use com.ibm.xsp.component.UIDataIterator.gotoNextPage(). |
boolean |
gotoPreviousPage()
Always fails with an exception, may be accidentally called when the application designer intended to use com.ibm.xsp.component.UIDataIterator.gotoPreviousPage(). |
boolean |
gotoRow(int row)
Always fails with an exception, may be accidentally called when the application designer intended to use com.ibm.xsp.component.UIDataIterator.gotoRow(int). |
void |
initAfterContents(javax.faces.context.FacesContext context)
Perform component initialization after it's children and facets are added. |
void |
initBeforeContents(javax.faces.context.FacesContext context)
Perform component initialization before its children and facets are added. |
boolean |
isDisableOutputTag()
|
boolean |
isRemoveRepeat()
Return the value of the removeRepeat property. |
void |
processDecodes(javax.faces.context.FacesContext context)
|
void |
processUpdates(javax.faces.context.FacesContext context)
|
void |
processValidators(javax.faces.context.FacesContext context)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list. |
void |
setDir(java.lang.String dir)
|
void |
setDisableOutputTag(boolean outputTag)
|
void |
setFirst(int first)
Set the value of the first property. |
void |
setIndexVar(java.lang.String indexVar)
|
void |
setRemoveRepeat(boolean remove)
Set the value of the removeRepeat property. |
void |
setRows(int rows)
Set the value of the rows property. |
void |
setValue(java.lang.Object value)
Set the value of the repeat panel. |
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding valueBinding)
|
void |
setVar(java.lang.String var)
|
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
Methods inherited from class javax.faces.component.UIComponent |
---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, invokeOnComponent, isVisitable, markInitialState, setControlState, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String RENDERER_TYPE
public static final java.lang.String INDEX
Constructor Detail |
---|
public UIRepeat()
Method Detail |
---|
public int getFirst()
Return the value of the first
property. Contents:
The index of the first row of data to process (first row is 0).
Note, while this does check for a run time binding if present, it is only invoked at page load time, so its value during any subsequent phase is ignored.
getFirst
in interface FacesDataIterator
public void setFirst(int first)
Set the value of the first
property.
setFirst
in interface FacesDataIterator
public int getRows()
Return the value of the rows
property. Contents:
The amount of rows to process starting from the index.
Note, while this does check for a run time binding if present, it is only invoked at page load time, so its value during any subsequent phase is ignored.
getRows
in interface FacesDataIterator
public void setRows(int rows)
Set the value of the rows
property.
setRows
in interface FacesDataIterator
public boolean isRemoveRepeat()
Return the value of the removeRepeat
property. Contents:
A boolean flag indicating the repeat should be removed after repeating it's child controls. Note: This only works if it repeats a single child which is a naming container.
public void setRemoveRepeat(boolean remove)
Set the value of the removeRepeat
property.
public void _xspCleanTransientData()
_xspCleanTransientData
in class javax.faces.component.UIComponentBase
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIComponent
public int getRowCount()
public int getRowIndex()
getRowIndex
in interface FacesDataIterator
getRowIndex
in interface FacesRowIndex
public java.lang.String getVar()
public boolean gotoFirstPage()
public boolean gotoPreviousPage()
public boolean gotoNextPage()
public boolean gotoLastPage()
public boolean gotoRow(int row)
public void setIndexVar(java.lang.String indexVar)
indexVar
- The index var to set.public java.lang.String getIndexVar()
public void setVar(java.lang.String var)
var
- The var to set.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- The value to set.public void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding valueBinding)
setValueBinding
in class javax.faces.component.UIComponentBase
public void initBeforeContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initBeforeContents
in interface FacesComponent
javax.faces.FacesException
public void buildContents(javax.faces.context.FacesContext context, FacesComponentBuilder builder) throws javax.faces.FacesException
FacesComponent
buildContents
in interface FacesComponent
javax.faces.FacesException
public void initAfterContents(javax.faces.context.FacesContext context) throws javax.faces.FacesException
FacesComponent
initAfterContents
in interface FacesComponent
javax.faces.FacesException
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
broadcast
in class javax.faces.component.UIComponentBase
javax.faces.event.AbortProcessingException
public void encodeChildren(javax.faces.context.FacesContext context) throws java.io.IOException
encodeChildren
in class javax.faces.component.UIComponentBase
java.io.IOException
public void processDecodes(javax.faces.context.FacesContext context)
processDecodes
in class javax.faces.component.UIComponentBase
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class javax.faces.component.UIComponentBase
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class javax.faces.component.UIComponentBase
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public javax.faces.model.DataModel getDataModel()
getDataModel
in interface FacesDataIterator
public java.lang.String getDir()
public void setDir(java.lang.String dir)
public boolean isDisableOutputTag()
public void setDisableOutputTag(boolean outputTag)
public java.util.List<Attr> getAttrs()
null
. The addAttr(Attr)
method should be used to add an Attr
.
getAttrs
in interface FacesAttrsObject
public void addAttr(Attr attr)
Attr
, to appear as an attribute in the HTML output of this control
or object tag.
addAttr
in interface FacesAttrsObject
action
- public void setAttrs(java.util.List<Attr> attrs)
addAttr(Attr)
method is used to add attributes to the list.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |