Thanks for your answer. Now I understand the concept of these repeatables!
I'll start working the code, see if I can make it work.
On Wednesday, October 9, 2013 10:12:22 PM UTC+2, Ullrich Hafner wrote:
>
> I'm using the repeatable to select the parsers in the warnings plug-in:
>
> <f:entry title="${%Scan console log}"
> description="${%description.consoleLogParsers}">
> <f:repeatableProperty field="consoleParsers" />
> </f:entry>
>
> Here the the whole UI:
>
> https://github.com/jenkinsci/warnings-plugin/blob/master/src/main/resources/hudson/plugins/warnings/WarningsPublisher/config.jelly
>
> Is your selectable package a Describable?
> Example:
>
> https://github.com/jenkinsci/warnings-plugin/blob/master/src/main/java/hudson/plugins/warnings/ConsoleParser.java
>
> The results are then passed to the constructor of my publisher:
>
> https://github.com/jenkinsci/warnings-plugin/blob/master/src/main/java/hudson/plugins/warnings/WarningsPublisher.java
>
> Ulli
>
> Am 09.10.2013 um 21:57 schrieb Péter Szegvári
> <[email protected]<javascript:>
> >:
>
> Hello Guys!
>
> I am new to plugin development.
>
> My goal is to choose multiple elements from a list, and the collection of
> the values back to the constructor.
>
> I have already made a ListboxModel with the possible items in it.It works
> fine.
>
> It was something like this, although I can't remember exactly. Of course,
> I was reading upon other topic, found on google. So far, no luck.
>
> <f:repeatable field="installPackages">
> <f:entry title="Available packages" field="availablePackages">
> <f:select style="width:40%"/>
> </f:entry>
> <f:repeatableAddButton>
> </f:repeatable>
>
> I tried to make it repeatable in the config.jelly, but the whole
> repeatable stuff is malfunctioning for me.
>
> Would you please suggest me a method to implement this?
> If a whole bunch of checkboxes would appear, labeled with the item names
> and then the checked values would be passed to the java, I would also
> consider a good solution.
>
> Any suggestions are welcome!
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" 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.