Hi
On 15/08/12 14:15, Alexander wrote:
Hi Sergey,
I've resolved this issue but is one question more,please:
how can configure cxf rest server to get json Date field type for this
format:"dd-MM-yyyy" ?
for example "private Date birthDate"
In this case client will send json date format "dd-MM-yyyy" and server cxf
JSonProvider must
recognize this value.
I think it's still best resolved at the level of JAXB adapters, but I've
no relevant experience.
You might also want to experiment with the Transform feature:
http://cxf.apache.org/docs/transformationfeature.html#TransformationFeature-Replacingtextcontent
Configure 'inAppendElements' at JSONProvider level as described here:
http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-CustomizingJAXBXMLandJSONinputandoutput
Cheers, Sergey
Thanks Alexander
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Jettison-Time-Zone-tp5712445p5712642.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com