users@jersey.java.net

Re: [Jersey] entities encoding issues in the response

From: Tatu Saloranta <cowtowncoder_at_yahoo.com>
Date: Wed, 21 May 2008 12:18:02 -0700 (PDT)

--- Arul Dhesiaseelan <arul_at_fluxcorp.com> wrote:

> Thanks Tatu for correcting me on this.
>
> But, CellType takes a string value which in this
> case is embedded within
> a CDATA. So, how do you expect me to set the CDATA
> string on the
> CellType within the resource class?
>
> Do I need to construct CDATASection?

It does not look like cell renderer interface can be
used to achieve what I was thinking. From your example
it seems to be geared more at textual datatype
conversions (like how do you serialize an int to a
String, regardless of how it gets embedded in xml at a
later point).

I am not familiar enough with Jersey to know if one
can easily configure underlying writers; but I do know
that it is easy with JAXB itself.

-+ Tatu +-