SELECT / COMBOBOX JELLY

30 views
Skip to first unread message

Virginia Mesa

unread,
Mar 20, 2018, 12:29:28 PM3/20/18
to Jenkins Developers

Good, I need to create a select / combobox to choose a multiple option. I did it this way:



But at the time of passing the data to the BackEnd, it is not saving me the value of the select / combobox.



Can you give me a hand how to do it in .jelly?

Thanks!

Antonio Muñiz

unread,
Mar 20, 2018, 1:25:50 PM3/20/18
to jenkin...@googlegroups.com
Use stapler entry and select components:

<f:entry title="${%APIs}" field="elecAPI">
    <f:select/>
</f:entry>

Then either use `<f:option>` or fill the combo options using a `doFillElecAPIItems()` in your descriptor implementation (it uses a naming convention).


--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/42f69431-9ca7-40fb-b997-0b8bcf13b5d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Antonio Muñiz
Software Engineer
CloudBees, Inc.

Jesse Glick

unread,
Mar 20, 2018, 1:42:43 PM3/20/18
to Jenkins Dev
On Tue, Mar 20, 2018 at 1:25 PM, Antonio Muñiz <amu...@cloudbees.com> wrote:
> fill the combo options using a `doFillElecAPIItems()` in your descriptor implementation

Do this. See `ui-samples-plugin` for examples.

Virginia Mesa

unread,
Mar 21, 2018, 4:21:57 AM3/21/18
to Jenkins Developers

Yes! It's like that! Thank you very much to both of you. And thank you very much for the UI Samples plugin, it has very interesting things. I'm starting now with the development of Plugins and all help is little with the little documentation there is. Thank you!




Reply all
Reply to author
Forward
0 new messages