File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Jenkins ListBoxModel to Checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Jenkins ListBoxModel to Checkboxes" Watch "Jenkins ListBoxModel to Checkboxes" New topic

Jenkins ListBoxModel to Checkboxes

James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
I have written a Jenkins plugin that uses doFillXXXItems and returns a ListBoxModel. It takes in a @QueryParameter which sets the name. It works great with a dropdown box. I now want to add checkboxes for each item but can't get it to work. If I create a method, it doesn't take @QueryParameter nor can I figure out how to set that with a typical j:forEach. I need to pass the name into the method or use a setter. I have been unsuccessful. Any ideas or examples?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

I don't know how to do that either. I find that when working on a plugin, I frequently need to look at a working example. Maybe the thing to do is look for a plugin that has checkboxes and see how they do it?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Jenkins ListBoxModel to Checkboxes
It's not a secret anymore!