f:select with multiple attribute

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

f:select with multiple attribute

Marco Brondani

Hi All,

 

I have a <f:select multiple=”multiple” /> in my Builder config.jelly which is populated by the BuilderDescriptor

Everything works fine, the user can select multiple options that are correctly stored and used in the build.

However, when the user goes back to the job configure page, the options are not selected. I can see that the correct String[] of values are persistent.

Am I missing anything?

I saw that other plugins use a list of checkboxes instead of the multiple select, but my clients does not like it..

 

Any help would be really appreciated,

Thank you!

 

Marco

 

 

 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/VI1PR04MB30701D53E6DB183B8207A3FAF53A0%40VI1PR04MB3070.eurprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: f:select with multiple attribute

Marco Brondani
Hello All,
Does anyone have a working example of the multiple select that I could take inspiration from?

I tried to use the ListBoxModel.Option that has a third parameter in the constructor for the selected state (true or false).
However this doesn't seem to be working.

M.-

From: Marco Brondani <[hidden email]>
Sent: Tuesday, November 28, 2017 8:54:58 PM
To: [hidden email]
Subject: f:select with multiple attribute
 

Hi All,

 

I have a <f:select multiple=”multiple” /> in my Builder config.jelly which is populated by the BuilderDescriptor

Everything works fine, the user can select multiple options that are correctly stored and used in the build.

However, when the user goes back to the job configure page, the options are not selected. I can see that the correct String[] of values are persistent.

Am I missing anything?

I saw that other plugins use a list of checkboxes instead of the multiple select, but my clients does not like it..

 

Any help would be really appreciated,

Thank you!

 

Marco

 

 

 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/VI1PR04MB3070D4A159CA5F82A1EED46AF53D0%40VI1PR04MB3070.eurprd04.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.