Hi Paul,
Paul B. Anderson wrote:
> I'm trying to handle an ArrayList<String> to achieve XML like the
> following:
>
> <entries>
> <entry>Alpha</entry>
> <entry>Bravo</entry>
> <entry>Charlie</entry>
> </entries>
>
> The examples Ive seen let me name the outer <entries> element or
> eliminate the outer element and name the inner elements. Is there a way to
> achieve both? I'm using annotations but I'm not tied to them.
Register a local converter of type NamedCollectionConverter for the field.
This is also possible with annotations, but a bit tedious. You may have a
look at the ParameterizedConverterTest for an example.
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email