Use numeric input controls for number fields.

XMLWordPrintable

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Trivial
    • Component/s: vsphere-cloud-plugin
    • Environment:
      Jenkins 2.516.2
      vSphere Plugin 2.27

      To improve the UX and data validation, I suggest using the dedicated <f:number> tag instead of the generic <f:textbox> tag for numeric input fields.

      See the example below:

          <f:advanced>
              <f:entry title="${%Max number of VMs online}" field="maxOnlineSlaves" description="0 means unlimited.">
                  <!-- <f:textbox clazz="required number"/> -->
                  <f:number clazz="required number" default="0" min="0" max="2147483647"/>
              </f:entry>
              <f:entry title="${%Template Instance Cap}" field="instanceCap" description="0 means unlimited.">
                  <!-- <f:textbox clazz="required number" default="0"/> -->
                  <f:number clazz="required number" default="0" min="0" max="2147483647"/>
              </f:entry>
          </f:advanced>
      

            Assignee:
            Unassigned
            Reporter:
            fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: