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

ui:repeat loses varStatus during save/restore state

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: