Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4341

ui:repeat value evaluated on each form submit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.12, 2.3.6, 2.3-next-M2
    • 2.2.13, 2.3.7, 3.0.0-RC1, 2.3-next-M3
    • General
    • 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

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            astappiev Oleh Astappiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: