Class UIRepeat
java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
org.apache.myfaces.view.facelets.component.UIRepeat
- All Implemented Interfaces:
- NamingContainer,- PartialStateHolder,- StateHolder,- TransientStateHolder,- ComponentSystemEventListener,- FacesListener,- SystemEventListenerHolder,- EventListener
@JSFComponent(name="ui:repeat",
              defaultRendererType="facelets.ui.Repeat")
public class UIRepeat
extends UIComponentBase
implements NamingContainer
- 
Field SummaryFieldsFields inherited from class jakarta.faces.component.UIComponentATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEYFields inherited from interface jakarta.faces.component.NamingContainerSEPARATOR_CHAR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbroadcast(FacesEvent event) voidencodeBegin(FacesContext context) voidencodeChildren(FacesContext faces) intgetBegin()getContainerClientId(FacesContext context) protected DataModelintgetEnd()protected FacesContextintgetIndex()intbooleanintReturns the rowCount of the underlying DataModel.intgetSize()intgetStep()getValue()getVar()booleaninvokeOnComponent(FacesContext context, String clientId, ContextCallback callback) booleanIndicates whether the state for a component in each row should not be discarded before the datatable is rendered again.voidvoidprocess(FacesContext faces, PhaseId phase) voidprocessDecodes(FacesContext faces) voidprocessUpdates(FacesContext faces) voidprocessValidators(FacesContext faces) voidqueueEvent(FacesEvent event) voidrestoreState(FacesContext context, Object state) saveState(FacesContext context) voidsetBegin(int begin) voidsetEnd(int end) voidsetOffset(int offset) voidsetRowIndex(int index) voidsetRowStatePreserved(boolean preserveComponentState) voidsetSize(int size) voidsetStep(int step) voidvoidsetValueExpression(String name, jakarta.el.ValueExpression binding) voidvoidsetVarStatus(String varStatus) booleanvisitTree(VisitContext context, VisitCallback callback) Methods inherited from class jakarta.faces.component.UIComponentBaseaddClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransientMethods inherited from class jakarta.faces.component.UIComponentgetClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
- 
Field Details- 
COMPONENT_TYPE- See Also:
 
- 
COMPONENT_FAMILY- See Also:
 
- 
_initialDescendantFullComponentState
- 
_rowDeltaStates
- 
_rowTransientStates
 
- 
- 
Constructor Details- 
UIRepeatpublic UIRepeat()
 
- 
- 
Method Details- 
getFamily- Specified by:
- getFamilyin class- UIComponent
 
- 
getOffset@JSFProperty public int getOffset()
- 
setOffsetpublic void setOffset(int offset) 
- 
getSize@JSFProperty public int getSize()
- 
setSizepublic void setSize(int size) 
- 
getStep@JSFProperty public int getStep()
- 
setSteppublic void setStep(int step) 
- 
getBegin@JSFProperty public int getBegin()
- 
setBeginpublic void setBegin(int begin) 
- 
getEnd@JSFProperty public int getEnd()
- 
setEndpublic void setEnd(int end) 
- 
getVar
- 
setVar
- 
getVarStatus
- 
setVarStatus
- 
isRowStatePreserved@JSFProperty(literalOnly=true, faceletsOnly=true) public boolean isRowStatePreserved()Indicates whether the state for a component in each row should not be discarded before the datatable is rendered again. This will only work reliable if the datamodel of the datatable did not change either by sorting, removing or adding rows. Default: false- Returns:
 
- 
setRowStatePreservedpublic void setRowStatePreserved(boolean preserveComponentState) 
- 
getDataModel
- 
setValueExpression- Overrides:
- setValueExpressionin class- UIComponent
 
- 
getValue
- 
setValue
- 
getContainerClientId- Overrides:
- getContainerClientIdin class- UIComponent
 
- 
getRowCountpublic int getRowCount()Returns the rowCount of the underlying DataModel.- Returns:
 
- 
getIndexpublic int getIndex()- Returns:
- the current index.
 
- 
setRowIndexpublic void setRowIndex(int index) 
- 
process
- 
invokeOnComponentpublic boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException - Overrides:
- invokeOnComponentin class- UIComponentBase
- Throws:
- FacesException
 
- 
markInitialStatepublic void markInitialState()- Specified by:
- markInitialStatein interface- PartialStateHolder
- Overrides:
- markInitialStatein class- UIComponentBase
 
- 
getFacesContext- Overrides:
- getFacesContextin class- UIComponentBase
 
- 
visitTree- Overrides:
- visitTreein class- UIComponentBase
 
- 
processDecodes- Overrides:
- processDecodesin class- UIComponentBase
 
- 
processUpdates- Overrides:
- processUpdatesin class- UIComponentBase
 
- 
processValidators- Overrides:
- processValidatorsin class- UIComponentBase
 
- 
broadcast- Overrides:
- broadcastin class- UIComponentBase
- Throws:
- AbortProcessingException
 
- 
queueEvent- Overrides:
- queueEventin class- UIComponentBase
 
- 
restoreState- Specified by:
- restoreStatein interface- StateHolder
- Overrides:
- restoreStatein class- UIComponentBase
 
- 
saveState- Specified by:
- saveStatein interface- StateHolder
- Overrides:
- saveStatein class- UIComponentBase
 
- 
encodeBegin- Overrides:
- encodeBeginin class- UIComponentBase
- Throws:
- IOException
 
- 
encodeChildren- Overrides:
- encodeChildrenin class- UIComponentBase
- Throws:
- IOException
 
- 
getRendersChildrenpublic boolean getRendersChildren()- Overrides:
- getRendersChildrenin class- UIComponentBase
 
 
-