-
Improvement
-
Resolution: Unresolved
-
Minor
-
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>