i have below entry in config.jelly for BuildWrapper class
<f:section>
<f:entry title="Version" field="mRoot">
<select class="setting-input" name="mRoot">
<j:forEach var="installation" items="${descriptor.installations}">
</j:forEach>
</select>
</f:entry>
</f:section>
I am trying to validate the dropdown using doCehck method in the same descriptor with below signature
public FormValidation doCheckMRoot(@QueryParameter final String mRoot) {
if(mRoot==null) {
return FormValidation.error("No Root selected");
}else {
return FormValidation.warning("root is set");
}
}
doCheck method does not get executed is there a different way that validation for <select> tag works ?