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 Summary
FieldsFields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
Fields inherited from interface jakarta.faces.component.NamingContainer
SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
broadcast
(FacesEvent event) void
encodeBegin
(FacesContext context) void
encodeChildren
(FacesContext faces) int
getBegin()
getContainerClientId
(FacesContext context) protected DataModel
int
getEnd()
protected FacesContext
int
getIndex()
int
boolean
int
Returns the rowCount of the underlying DataModel.int
getSize()
int
getStep()
getValue()
getVar()
boolean
invokeOnComponent
(FacesContext context, String clientId, ContextCallback callback) boolean
Indicates whether the state for a component in each row should not be discarded before the datatable is rendered again.void
void
process
(FacesContext faces, PhaseId phase) void
processDecodes
(FacesContext faces) void
processUpdates
(FacesContext faces) void
processValidators
(FacesContext faces) void
queueEvent
(FacesEvent event) void
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) void
setBegin
(int begin) void
setEnd
(int end) void
setOffset
(int offset) void
setRowIndex
(int index) void
setRowStatePreserved
(boolean preserveComponentState) void
setSize
(int size) void
setStep
(int step) void
void
setValueExpression
(String name, jakarta.el.ValueExpression binding) void
void
setVarStatus
(String varStatus) boolean
visitTree
(VisitContext context, VisitCallback callback) Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, 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, setTransient
Methods inherited from class jakarta.faces.component.UIComponent
getClientId, 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
-
UIRepeat
public UIRepeat()
-
-
Method Details
-
getFamily
- Specified by:
getFamily
in classUIComponent
-
getOffset
@JSFProperty public int getOffset() -
setOffset
public void setOffset(int offset) -
getSize
@JSFProperty public int getSize() -
setSize
public void setSize(int size) -
getStep
@JSFProperty public int getStep() -
setStep
public void setStep(int step) -
getBegin
@JSFProperty public int getBegin() -
setBegin
public void setBegin(int begin) -
getEnd
@JSFProperty public int getEnd() -
setEnd
public 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:
-
setRowStatePreserved
public void setRowStatePreserved(boolean preserveComponentState) -
getDataModel
-
setValueExpression
- Overrides:
setValueExpression
in classUIComponent
-
getValue
-
setValue
-
getContainerClientId
- Overrides:
getContainerClientId
in classUIComponent
-
getRowCount
public int getRowCount()Returns the rowCount of the underlying DataModel.- Returns:
-
getIndex
public int getIndex()- Returns:
- the current index.
-
setRowIndex
public void setRowIndex(int index) -
process
-
invokeOnComponent
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException - Overrides:
invokeOnComponent
in classUIComponentBase
- Throws:
FacesException
-
markInitialState
public void markInitialState()- Specified by:
markInitialState
in interfacePartialStateHolder
- Overrides:
markInitialState
in classUIComponentBase
-
getFacesContext
- Overrides:
getFacesContext
in classUIComponentBase
-
visitTree
- Overrides:
visitTree
in classUIComponentBase
-
processDecodes
- Overrides:
processDecodes
in classUIComponentBase
-
processUpdates
- Overrides:
processUpdates
in classUIComponentBase
-
processValidators
- Overrides:
processValidators
in classUIComponentBase
-
broadcast
- Overrides:
broadcast
in classUIComponentBase
- Throws:
AbortProcessingException
-
queueEvent
- Overrides:
queueEvent
in classUIComponentBase
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIComponentBase
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIComponentBase
-
encodeBegin
- Overrides:
encodeBegin
in classUIComponentBase
- Throws:
IOException
-
encodeChildren
- Overrides:
encodeChildren
in classUIComponentBase
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildren
in classUIComponentBase
-