Hi,

the jelly File is:

<f:entry field="selectedJobs" title="Select Jobs">
   <f:select multiple="multiple"/>
</f:entry>

In my descriptor i have selectedJobs as the Set of Strings.

at the time of loading the f:select items i have the code 

public ListBoxModel doFillSelectedJobsItems(@QueryParameter String 
selectedProjects) {
           ListBoxModel items = new ListBoxModel();
           
           Option initoption = new Option("--Choose Jobs--","", false);
           items.add(initoption);
          
           Set<String> jobList = new HashSet<String>(); 
          
           if(!selectedProjects.isEmpty()){
           jobList = 
fetchJobList(JobConfigurationUtil.evaluateProjectIDFromProjectString(selectedProjects.trim()));
           }
           
           
           if(jobList != null){
           
           for (String job : jobList) {
                  boolean selected = false;
                   if(jobList.contains(selectedJobs)){
                   selected = true;
                   }
                  
                   Option option = new Option(job, job, selected);
                
                   items.add(option);
               
               }
           }
           
           return items;
       }

My objective is to load and show all the selected items as Highlighted in 
the Multi Select Dropdown.

even though i am able to load the multiple selected items from the 
config.xml, i am unable to show them as highlighted in the dropdown.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to