You can definitely render JSON as the response to a traditional request. Take a look in TapestryModule for the result processors. By default only the @Ajax configuration includes json, but you can add it in your app module for the @Traditional config.
I don't have an answer for blocks off the top of my head, I'm writing from my phone, but I would guess there might be a similar result processor, possibly Renderable or something that you could use. On Dec 23, 2010 6:18 AM, "raulmt" <rau...@gmail.com> wrote: > > Hi, > > I'm integrating plupload (http://www.plupload.com/) with Tapestry and I > cannot find a solution to the last step. Plupload expects a response in JSON > format but the request it sends to Tapestry with the uploaded file is a > traditional request (because Ajax requests cannot send files unless the > browser has that HTML5 capability). I could just send a TextStreamResponse > with a text containing JSON, but what I really want to do is to send, in > this JSON response, a little bit of HTML rendered by Tapestry. In fact, if I > could just send back to the browser the same response Tapestry sends when > returning a Block it would be great. > > The problem, as I said, is that this is in the context of a traditional > request. Is there a way to generate a portion of HTML (ideally a Block) in > the context of a traditional (non-Ajax) request? > > Thanks. > > Regards, > Raul. > -- > View this message in context: http://tapestry-users.832.n2.nabble.com/plupload-with-Tapestry-tp5862187p5862187.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >