Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.12, 2.3.6, 2.3-next-M2
-
None
Description
In the example below, a method `testView.getList()` is called every time the button is pressed. I think this is not expected behavior.
<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>
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