Skip to content
Permalink
Browse files

[FIXED JENKINS-37147] FIXED: "Top Most Value" is replaced with an emp…

…ty value when the page load is slow
  • Loading branch information...
ikedam committed Sep 10, 2016
1 parent a2f0d8b commit 8c02e0d2f8d5306e703d0d7f9538ca6d49867d41
@@ -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.
*
@@ -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;
@@ -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;
@@ -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>
@@ -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>
@@ -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.
You can’t perform that action at this time.