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
Fields Modifier and Type Field Description static String
COMPONENT_FAMILY
static String
COMPONENT_TYPE
-
Fields 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 Constructor Description UIRepeat()
-
Method Summary
-
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, markInitialState, 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 Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFamily
public String 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
@JSFProperty(literalOnly=true) public String getVar()
-
setVar
public void setVar(String var)
-
getVarStatus
@JSFProperty(literalOnly=true) public String getVarStatus()
-
setVarStatus
public void setVarStatus(String varStatus)
-
getDataModel
protected DataModel getDataModel()
-
setValueExpression
public void setValueExpression(String name, jakarta.el.ValueExpression binding)
- Overrides:
setValueExpression
in classUIComponent
-
getValue
@JSFProperty public Object getValue()
-
setValue
public void setValue(Object value)
-
getContainerClientId
public String getContainerClientId(FacesContext context)
- 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
public void process(FacesContext faces, PhaseId phase)
-
invokeOnComponent
public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException
- Overrides:
invokeOnComponent
in classUIComponentBase
- Throws:
FacesException
-
getFacesContext
protected FacesContext getFacesContext()
- Overrides:
getFacesContext
in classUIComponentBase
-
visitTree
public boolean visitTree(VisitContext context, VisitCallback callback)
- Overrides:
visitTree
in classUIComponentBase
-
processDecodes
public void processDecodes(FacesContext faces)
- Overrides:
processDecodes
in classUIComponentBase
-
processUpdates
public void processUpdates(FacesContext faces)
- Overrides:
processUpdates
in classUIComponentBase
-
processValidators
public void processValidators(FacesContext faces)
- Overrides:
processValidators
in classUIComponentBase
-
broadcast
public void broadcast(FacesEvent event) throws AbortProcessingException
- Overrides:
broadcast
in classUIComponentBase
- Throws:
AbortProcessingException
-
queueEvent
public void queueEvent(FacesEvent event)
- Overrides:
queueEvent
in classUIComponentBase
-
restoreState
public void restoreState(FacesContext context, Object state)
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIComponentBase
-
saveState
public Object saveState(FacesContext context)
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIComponentBase
-
encodeBegin
public void encodeBegin(FacesContext context) throws IOException
- Overrides:
encodeBegin
in classUIComponentBase
- Throws:
IOException
-
encodeChildren
public void encodeChildren(FacesContext faces) throws IOException
- Overrides:
encodeChildren
in classUIComponentBase
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in classUIComponentBase
-
-