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

field attr must be redundantly specified on f:repeatableProperty

XMLWordPrintable

      <f:entry field="something" title="${%Something}">
          <f:textbox/>
      </f:entry>
      

      works fine. Yet

      <f:entry field="something" title="${%Something}">
          <f:repeatableProperty/>
      </f:entry>
      

      breaks page loading with a JavaScript error:

      TypeError: Cannot call method "next" of undefined (.../adjuncts/.../lib/form/radioBlock/radioBlock.js#53)
      
              var e = (function() {
                  var e = s;
                  var cnt=1;
                  while(cnt>0) {
                      e = $(e).next(); // ← HERE
      

      Using

      <f:entry field="something" title="${%Something}">
          <f:repeatableProperty field="something"/>
      </f:entry>
      

      works fine. But why must this attribute be specified on both elements? (It is needed on f:entry to make help work.) Normally attributes are inherited automatically, as the f:textbox example shows.

      I am guessing this has something to do with the delegation to

      <f:repeatable field="${attrs.field}" .../>
      

      but am unclear why that would confuse Jelly.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: