Hey, I am struggling with something supposedly simple. I need to get a list of strings from user through both UI and JCasC.

In UI, I use `f:repeatable > f:textbox`, that unfortunately produces a bit clumsy json structure of `"foo": [ {"name": "value 1"}, {"name": "value b"}, ... ]`. For databinding only, this is hidden and can be read through a dummy data-bound class with field `String name` so I can consume `List<Dummy>` and unwrap the strings manually. However, this breaks the desired JCasC semantics of:

```
foo:
  - one
  - two
```

I ended up overriding `GlobalConfiguration#configure` to massage the Json during form submission only to make it match the straightforward type of `List<String>` that also works for JCasC. That, of course, is ugly.

Is there a more elegant way to read list of string inputs and have it bound to `List<String>`?

Thanks!
--
oliver

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/bde36da3-0ed4-d02a-7760-1e54d42dcbf8%40gmail.com.

Reply via email to