Package org.primefaces.component.repeat
Class UIRepeat
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UINamingContainer
-
- org.primefaces.component.repeat.UIRepeat
-
- All Implemented Interfaces:
EventListener
,javax.faces.component.NamingContainer
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.component.UniqueIdVendor
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
public class UIRepeat extends javax.faces.component.UINamingContainer
Copied from Mojarra, to port bugfixes from newer Mojarra versions, to users of older Mojarra versions. Actually nosense as those bugs should be fixed in Mojarra and updated in the containers... Also see: https://code.google.com/archive/p/primefaces/issues/7190 Mojarra's implementation if ui:repeat needs to check if ui:repeat is nested in another repeat component, see:isNestedInIterator()
. This is not required in the MyFaces impl. Would be nice if Mojarra could enhance their implementation some day.
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_FAMILY
static String
COMPONENT_TYPE
-
Constructor Summary
Constructors Constructor Description UIRepeat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
broadcast(javax.faces.event.FacesEvent event)
void
encodeChildren(javax.faces.context.FacesContext faces)
Integer
getBegin()
String
getClientId(javax.faces.context.FacesContext faces)
Integer
getEnd()
String
getFamily()
Integer
getOffset()
boolean
getRendersChildren()
Integer
getSize()
Integer
getStep()
Object
getValue()
String
getVar()
String
getVarStatus()
boolean
invokeOnComponent(javax.faces.context.FacesContext faces, String clientId, javax.faces.component.ContextCallback callback)
void
process(javax.faces.context.FacesContext faces, javax.faces.event.PhaseId phase)
void
processDecodes(javax.faces.context.FacesContext faces)
void
processUpdates(javax.faces.context.FacesContext faces)
void
processValidators(javax.faces.context.FacesContext faces)
void
queueEvent(javax.faces.event.FacesEvent event)
void
restoreState(javax.faces.context.FacesContext faces, Object object)
Object
saveState(javax.faces.context.FacesContext faces)
void
setBegin(Integer begin)
void
setEnd(Integer end)
void
setOffset(Integer offset)
void
setSize(Integer size)
void
setStep(Integer step)
void
setValue(Object value)
void
setVar(String var)
void
setVarStatus(String varStatus)
boolean
visitTree(javax.faces.component.visit.VisitContext context, javax.faces.component.visit.VisitCallback callback)
-
Methods inherited from class javax.faces.component.UINamingContainer
createUniqueId, getSeparatorChar
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
-
-
-
-
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()
- Overrides:
getFamily
in classjavax.faces.component.UINamingContainer
-
setEnd
public void setEnd(Integer end)
-
getEnd
public Integer getEnd()
-
setSize
public void setSize(Integer size)
-
getSize
public Integer getSize()
-
setOffset
public void setOffset(Integer offset)
-
getOffset
public Integer getOffset()
-
setBegin
public void setBegin(Integer begin)
-
getBegin
public Integer getBegin()
-
setStep
public void setStep(Integer step)
-
getStep
public Integer getStep()
-
getVar
public String getVar()
-
setVar
public void setVar(String var)
-
getVarStatus
public String getVarStatus()
-
setVarStatus
public void setVarStatus(String varStatus)
-
getValue
public Object getValue()
-
setValue
public void setValue(Object value)
-
getClientId
public String getClientId(javax.faces.context.FacesContext faces)
- Overrides:
getClientId
in classjavax.faces.component.UIComponentBase
-
process
public void process(javax.faces.context.FacesContext faces, javax.faces.event.PhaseId phase)
-
invokeOnComponent
public boolean invokeOnComponent(javax.faces.context.FacesContext faces, String clientId, javax.faces.component.ContextCallback callback) throws javax.faces.FacesException
- Overrides:
invokeOnComponent
in classjavax.faces.component.UIComponentBase
- Throws:
javax.faces.FacesException
-
visitTree
public boolean visitTree(javax.faces.component.visit.VisitContext context, javax.faces.component.visit.VisitCallback callback)
- Overrides:
visitTree
in classjavax.faces.component.UINamingContainer
-
processDecodes
public void processDecodes(javax.faces.context.FacesContext faces)
- Overrides:
processDecodes
in classjavax.faces.component.UIComponentBase
-
processUpdates
public void processUpdates(javax.faces.context.FacesContext faces)
- Overrides:
processUpdates
in classjavax.faces.component.UIComponentBase
-
processValidators
public void processValidators(javax.faces.context.FacesContext faces)
- Overrides:
processValidators
in classjavax.faces.component.UIComponentBase
-
broadcast
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
- Overrides:
broadcast
in classjavax.faces.component.UIComponentBase
- Throws:
javax.faces.event.AbortProcessingException
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEvent
in classjavax.faces.component.UIComponentBase
-
restoreState
public void restoreState(javax.faces.context.FacesContext faces, Object object)
- Specified by:
restoreState
in interfacejavax.faces.component.StateHolder
- Overrides:
restoreState
in classjavax.faces.component.UIComponentBase
-
saveState
public Object saveState(javax.faces.context.FacesContext faces)
- Specified by:
saveState
in interfacejavax.faces.component.StateHolder
- Overrides:
saveState
in classjavax.faces.component.UIComponentBase
-
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext faces) throws IOException
- Overrides:
encodeChildren
in classjavax.faces.component.UIComponentBase
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in classjavax.faces.component.UIComponentBase
-
-