On Sat, 26 Feb 2011 13:52:27 -0300, Tom van Dijk <t...@tvandijk.nl> wrote:

Hi,

Hi!

Well, it is an AJAX request. The X-Requested-With header is properly set, isXHR() will return true. I'm executing it in Javascript, just a normal call. It's supposed to return a form that I can then display in any DIV that I want, and I don't want to use zones here. So I would think I should add a method in my Page class, "getStuff" or something like that. And I basically want to call that method, which returns a Block, from Javascript and get the actual rendered HTML to put in any DIV of my choice.

As other people stated here, Tapestry zones already provides something at least similar to what you want. I can't say for sure because you didn't provide more details. Anyway, there isn't a ready made way of rendering a block to a string. Please file a JIRA about it. Meanwhile, this message in the mailing list provide a way of doing exactly what you want: http://www.mail-archive.com/users@tapestry.apache.org/msg38854.html. It's not beautiful, but works. :)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to