myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James G (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3206) ui:repeat loses varStatus during save/restore state
Date Tue, 05 Jul 2011 14:00:17 GMT
ui:repeat loses varStatus during save/restore state
---------------------------------------------------

                 Key: MYFACES-3206
                 URL: https://issues.apache.org/jira/browse/MYFACES-3206
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.0.7
         Environment: MyFaces 2.0.7, Richfaces 4.0, Tomcat 6
            Reporter: James G


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message