Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72115

Repeatable Jelly tag varStatus attribute cannot be used unless set to loopStatus name

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.425

      When I try to use the varStatus property or the repeatable Jelly tag, I usually get null value.

      With the following code, the title is set to "null":

              <f:repeatable var="arg" items="${instance.buildStepArgs}" name="buildStepArgs" minimum="1" varStatus="status">
                  <f:entry field="arg" title="${status.count}">
                      <f:textbox value="${arg}" />
                  </f:entry>
              </f:repeatable>
      

      But if I use varStatus="loopStatus", then I'll get the right count value:

              <f:repeatable var="arg" items="${instance.buildStepArgs}" name="buildStepArgs" minimum="1" varStatus="loopStatus">
                  <f:entry field="arg" title="${loopStatus.count}">
                      <f:textbox value="${arg}" />
                  </f:entry>
              </f:repeatable>
      

            Unassigned Unassigned
            flabrie Francis Labrie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: