Skip to content

Commit

Permalink
[FIXED JENKINS-37147] FIXED: "Top Most Value" is replaced with an emp…
Browse files Browse the repository at this point in the history
…ty value when the page load is slow
  • Loading branch information
ikedam committed Sep 10, 2016
1 parent a2f0d8b commit 8c02e0d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
Expand Up @@ -151,6 +151,15 @@ public ListBoxModel doFillDefaultChoiceItems(@QueryParameter String name)
return ret;
}


/**
* @return the special value used for "No default choice" (use the top most)
*/
public String getNoDefaultChoice()
{
return NoDefaultChoice;
}

/**
* Retrieve the set of choices entry by the name.
*
Expand Down
Expand Up @@ -149,7 +149,15 @@ public ListBoxModel doFillDefaultChoiceItems(StaplerRequest req, @QueryParameter

return ret;
}


/**
* @return the special value used for "No default choice" (use the top most)
*/
public String getNoDefaultChoice()
{
return NoDefaultChoice;
}

public FormValidation doTest(StaplerRequest req, @QueryParameter String scriptText, @QueryParameter boolean usePredefinedVariables)
{
List<String> choices = null;
Expand Down
Expand Up @@ -93,6 +93,14 @@ public ListBoxModel doFillDefaultChoiceItems(@QueryParameter String choiceListTe
}
return ret;
}

/**
* @return the special value used for "No default choice" (use the top most)
*/
public String getNoDefaultChoice()
{
return NoDefaultChoice;
}
}

private List<String> choiceList = null;
Expand Down
Expand Up @@ -32,7 +32,7 @@ THE SOFTWARE.
<f:select />
</f:entry>
<f:entry title="${%Default Choice}" field="defaultChoice" help="/plugin/extensible-choice-parameter/help/defaultChoice.html">
<f:select />
<f:select default="${descriptor.noDefaultChoice}" />
</f:entry>
<m:addEditedValue />
</j:jelly>
Expand Up @@ -36,6 +36,6 @@ THE SOFTWARE.
with="scriptText,usePredefinedVariables"
/>
<f:entry title="${%Default Choice}" field="defaultChoice" help="/plugin/extensible-choice-parameter/help/defaultChoice.html">
<f:select />
<f:select default="${descriptor.noDefaultChoice}" />
</f:entry>
</j:jelly>
Expand Up @@ -27,7 +27,7 @@ THE SOFTWARE.
<f:textarea />
</f:entry>
<f:entry title="${%Default Choice}" field="defaultChoice" help="/plugin/extensible-choice-parameter/help/defaultChoice.html">
<f:select />
<f:select default="${descriptor.noDefaultChoice}" />
</f:entry>
<m:addEditedValue />
</j:jelly>

0 comments on commit 8c02e0d

Please sign in to comment.