Hello,
On Thu, 2010-10-07 at 15:01 +0530, Dhanush Gopinath wrote:
> It should be
>
> ExtJsWrapper<Campagne> campagne =
>
> ressource.accept(MediaType.APPLICATION_JSON_TYPE)
> .type(MediaType.APPLICATION_JSON_TYPE)
> .put(new GenericType<ExtJsWrapper<Campagne>>() {},
> campagne);
>
> because your PUT method is receiving an object of
> ExtJsWrapper<Campagne> and not that of Campagne
Well spotted, you're right.
That was a mistake I made in copy/pasting the code into this message.
I confirm that it also doesn't work with a parameter of type
ExtJsWrapper<Campagne>.
--
Damiano ALBANI