users@jersey.java.net

Re: [Jersey] complex types in Colelctions

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Sun, 26 Apr 2009 09:59:15 -0700

Fail by not working as expected, or throwing an exception? And if
latter, what does it say?

Btw, this question would be a better fit for JAXB users list than
Jersey, cc:ing thusly,

-+ Tatu +-

2009/4/26 Felipe Gaścho <fgaucho_at_gmail.com>:
> I tried the JAXB example from Jersey and it works fine, but: if I try
> the same code using a complex type instead of the simple type defined
> in the original code, it start to fail...
>
> so, instead of:
>
> @XmlRootElement
> public class JAXBXmlRootElement {
>        public String value;
> ... }
>
> how about:
>
> @XmlRootElement
> public class JAXBXmlRootElement {
>        public String value;
>
>        public JAXBXmlType type;
> ... }
>
> ??
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>