Class 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  
      • Fields inherited from class javax.faces.component.UINamingContainer

        SEPARATOR_CHAR_PARAM_NAME
      • Fields inherited from class javax.faces.component.UIComponent

        ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
      • Fields inherited from interface javax.faces.component.NamingContainer

        SEPARATOR_CHAR
    • 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
      • Methods inherited from interface javax.faces.component.StateHolder

        isTransient, setTransient
    • Constructor Detail

      • UIRepeat

        public UIRepeat()
    • Method Detail

      • getFamily

        public String getFamily()
        Overrides:
        getFamily in class javax.faces.component.UINamingContainer
      • setEnd

        public void setEnd​(Integer end)
      • 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 class javax.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 class javax.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 class javax.faces.component.UINamingContainer
      • processDecodes

        public void processDecodes​(javax.faces.context.FacesContext faces)
        Overrides:
        processDecodes in class javax.faces.component.UIComponentBase
      • processUpdates

        public void processUpdates​(javax.faces.context.FacesContext faces)
        Overrides:
        processUpdates in class javax.faces.component.UIComponentBase
      • processValidators

        public void processValidators​(javax.faces.context.FacesContext faces)
        Overrides:
        processValidators in class javax.faces.component.UIComponentBase
      • broadcast

        public void broadcast​(javax.faces.event.FacesEvent event)
                       throws javax.faces.event.AbortProcessingException
        Overrides:
        broadcast in class javax.faces.component.UIComponentBase
        Throws:
        javax.faces.event.AbortProcessingException
      • queueEvent

        public void queueEvent​(javax.faces.event.FacesEvent event)
        Overrides:
        queueEvent in class javax.faces.component.UIComponentBase
      • restoreState

        public void restoreState​(javax.faces.context.FacesContext faces,
                                 Object object)
        Specified by:
        restoreState in interface javax.faces.component.StateHolder
        Overrides:
        restoreState in class javax.faces.component.UIComponentBase
      • saveState

        public Object saveState​(javax.faces.context.FacesContext faces)
        Specified by:
        saveState in interface javax.faces.component.StateHolder
        Overrides:
        saveState in class javax.faces.component.UIComponentBase
      • encodeChildren

        public void encodeChildren​(javax.faces.context.FacesContext faces)
                            throws IOException
        Overrides:
        encodeChildren in class javax.faces.component.UIComponentBase
        Throws:
        IOException
      • getRendersChildren

        public boolean getRendersChildren()
        Overrides:
        getRendersChildren in class javax.faces.component.UIComponentBase