Hi,
I am really stuck with this. Please suggest me if i can able to show set
selected in the Multiple Drop down
The multiple dropdown values are dependent from another drop down values.
So i have to use f:select.
It would be very helpful for me.
Regards,
Prasenjit Majumder
On Monday, May 19, 2014 8:32:37 PM UTC+5:30, prasenjit majumder wrote:
>
> 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.