Oleh Astappiev created MYFACES-4341:
---------------------------------------

             Summary: 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.3-next-M2, 2.3.6
            Reporter: Oleh Astappiev


In the example below, a method `testView.getList()` is called every time the 
button is pressed. I think this is not expected behavior.

 
{code:java}
<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)

Reply via email to