File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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?

Jim
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30917
    
158

Jim,
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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jenkins ListBoxModel to Checkboxes