Jelly 'enum' tag 'default' attribute not working

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: core
    • Environment:
      Jenkins 2.60|2.224, Java Runtime Environemnt 8|11
    • 2.226

      The <f:enum>  tag from Jenkins Jelly form library has an attribue default that should set the field value for newly created forms.  It does not work because of the bug in the core/src/main/resources/lib/form/enum.jelly source file. As a result the HTML <select> will have no <option> selected which will make the first enum value be used when submitting a form instead of the wanted value.

        <f:entry field="ballColor">
          <f:enum default="YELLOW"/>
        </f:entry>

            Assignee:
            Unassigned
            Reporter:
            Krzysztof Knapik
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: