[ https://issues.apache.org/jira/browse/MYFACES-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved MYFACES-4341. ---------------------------------------- Assignee: Thomas Andraschko Resolution: Fixed > ui:repeat value evaluated on each form submit > --------------------------------------------- > > Key: MYFACES-4341 > URL: https://issues.apache.org/jira/browse/MYFACES-4341 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.2.12, 2.3.6, 2.3-next-M2 > Reporter: Oleh Astappiev > Assignee: Thomas Andraschko > Priority: Major > Fix For: 2.2.13, 2.3.7, 3.0.0, 2.3-next-M3 > > > In the example below, a method `testView.getList()` is called every time the > button is pressed. I think this is not expected behavior. > > {code:html} > <h:form id="frmTest"> > <p:commandButton value="button" styleClass="alt-btn" > action="#{testView.onSubmit()}" process="@form" partialSubmit="true" > update=":updatetestpanel"/> > </h:form> > <h:panelGroup id="updatetestpanel"> > Some text > </h:panelGroup> > <ui:repeat value="#{testView.list}" var="val"> > <h:outputText value="#{val}"/> > </ui:repeat> > {code} > > I checked with MyFaces 2.2, MyFaces 2.3, MyFaces 2.3-next-M2 (which we > currently use), and Mojarra 2.3, and only the last one doesn't have that > issue. > > Full example code https://github.com/astappiev/primefaces-test/tree/ui-repeat -- This message was sent by Atlassian Jira (v8.3.4#803005)