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

MYFACES-4203 regresses ui:repeat , can't update the step

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1
    • JSR-372
    • None

    Description

      For instance something like this would fail to work correctly if the step were 2 it seems the step will always be 1. The initial page works as step is initialized to 1 in the backing bean. However if you update the step to two and submit the page it is still 1.

      step: <h:inputText id="stepInput" value="#{iterationBean.step}"/>
              <p/>
              <h:panelGroup id="panel1">
                  <ui:repeat value="#{iterationBean.testList}" var="x" begin="#{iterationBean.begin}" end="#{iterationBean.end}" step="#{iterationBean.step}">
                      #{x}
                  </ui:repeat>
              </h:panelGroup>
              <p/>
              <h:commandButton id="button1" value="Test">
                  <f:ajax execute="@all" render="panel1" />
              </h:commandButton>
      

      Or removing ajax:

      step: <h:inputText id="stepInput" value="#{iterationBean.step}"/>
              <p/>
              <h:panelGroup id="panel1">
                  <ui:repeat value="#{iterationBean.testList}" var="x" begin="#{iterationBean.begin}" end="#{iterationBean.end}" step="#{iterationBean.step}">
                      #{x}
                  </ui:repeat>
              </h:panelGroup>
              <p/>
              <h:commandButton id="button1" value="Test">
              </h:commandButton>
      

      Attachments

        1. MYFACES-4222-withtests.patch
          11 kB
          Paulo Cristovão de Araújo Silva Filho
        2. MYFACES-4222.patch
          0.8 kB
          Paul Nicolucci
        3. patch_4222_tests.diff
          8 kB
          Paulo Cristovão de Araújo Silva Filho

        Issue Links

          Activity

            People

              paul.nicolucci Paul Nicolucci
              paul.nicolucci Paul Nicolucci
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: