On Tuesday, October 25, 2011 at 11:51:38 PM UTC+2, Christopher wrote:
On 25/10/2011 17:16, domi wrote:
>> is there any example using @DataBoundConstructor on a constructor which
>> takes a collection e.g.:
>>
>> @DataBoundConstructor
>> public MyClass(String id, String name, List<String> args) {
>> ...
>> }
>
> I have an <f:repeatable> tag in jelly that is passed into my
> DataBoundConstructor as an array. I vague recall trying it with a List,
> but it didn't work unless I specified an array.
Probably a bit late, but for reference, this seem to be easily possible by
using Groovy instead of Jelly now, see
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+View
https://github.com/jenkinsci/ui-samples-plugin/blob/master/src/main/java/jenkins/plugins/ui_samples/FormFieldValidationWithContext.java
https://github.com/jenkinsci/ui-samples-plugin/blob/master/src/main/resources/jenkins/plugins/ui_samples/FormFieldValidationWithContext/index.groovy
Regards,
Sebastian
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/607dbf18-f602-4a68-95f3-d23c3643b1c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.