[
https://issues.apache.org/jira/browse/MYFACES-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17138571#comment-17138571
]
Oleh Astappiev commented on MYFACES-4341:
-----------------------------------------
Looks like Mojarra had the same issue a while ago
https://github.com/eclipse-ee4j/mojarra/issues/3156
> 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
> Priority: Major
>
> 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)