Hello,

perhaps this should go to tynamo user list, but I guess no one will mind
posting this here.

I am successfully using tapestry-resteasy integration module, but have come
to a dead-end on a JSONP issue. I wanted my web service to return a JSON
wrapped in a javascript callback function and found out that resteasy does
not support this. See https://jira.jboss.org/browse/RESTEASY-342

Now, the Jersey library can do this. See

http://java.dzone.com/articles/jersey-featuring-jquery-jsonp?utm_source=feedburner
and
http://persistentdesigns.com/wp/?p=233

It is all about the
@Produces( { application/x-javascript, MediaType.APPLICATION_JSON,
MediaType.APPLICATION_XML })
and
@QueryParam("jsoncallback") @DefaultValue("fn") String callback

Of course I could live without this, I can just return concatenated String,
but that does not "feel right", well it would be ugly.

Before looking at the source code for tynamo-resteasy, how hard would it be
to write tapestry-jersey integration module?

Best,
Borut

Reply via email to