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}">
          <f:option selected="${installation.name==instance.mRoot}" 
value="${installation.name}">${installation.name} </f:option>
   
       </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 ? 


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/13f8f0a5-85e2-475c-a053-75b739ae4ea7%40googlegroups.com.

Reply via email to