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

Jelly 'enum' tag 'default' attribute not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 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>

            Unassigned Unassigned
            knapsu Krzysztof Knapik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: