Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3206

ui:repeat loses varStatus during save/restore state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 2.0.8, 2.1.2
    • None
    • None
    • MyFaces 2.0.7, Richfaces 4.0, Tomcat 6

    Description

      If you use a ui:repeat with the varStatus set then the varStatus is lost during an ajax call.
      for example:
      <h:panelGroup id="myPanel">
      <ui:repeat value="#

      {repeatOver}

      "
      id="repeatID"
      var="v"
      varStatus="vStatus">
      <h:outputText value="vStatus.index" />
      </ui:repeat>
      </h:panelGroup>

      If you invoke an ajax call which renders "myPanel" then the vStatus variable is now null.
      If you look at org.apache.myfaces.view.facelets.component.UIRepeat the restoreState and saveState methods save _var but not _varStatus.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            jgoodfe James G
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: