I'm writing a custom build history portlet (extends DashboardPortlet). I would like to display a combo box (in the portlet) that allows the user to choose the number of builds that are currently displayed in the history. Note that I want to display the combo box in the portlet itself, not the config.jelly configuration page. I tried following the "Select (drop down menu) with model filled values" section of the jelly form controls wiki page (https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls) however it doesn't appear to work for me. I believe it's because this only works for the config.jelly.
So far writing Jenkins plugins is my first foray into Java programming, so I'm completely new to Java/Jelly/Groovy/Swing. I've looked at the jelly "set" tag (j:set) however this appears to define a variable / value for use within the view, not the model. I'm not sure if I can use the "target" attribute to push to the model. From what I read I think I might be able to achieve what I want using the "define:taglib" tag and creating my own java bean / jelly bean - I've never done this before and have not had success with this so far. Could someone please explain (and/or provide an example of) the proper way to push user selected data from the view into a field in my Java model? Thanks, -Kris -- 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/groups/opt_out.
