select is a standard HTML tag that is not processed at all. You need to use a 
<f:select> tag. 

> Am 23.01.2020 um 08:26 schrieb Nikhil Bhoski <[email protected]>:
> 
> 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] 
> <mailto:[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
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/13f8f0a5-85e2-475c-a053-75b739ae4ea7%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/EFA6B8BB-9B97-4DEF-9161-DDEF4609DF04%40gmail.com.

Reply via email to