On Thu, 20 May 2010 18:15:03 -0300, Łukasz Jazgar
<lukasz.jaz...@gmail.com> wrote:
I need something like that:
void afterRender(MarkupWriter writer) {
writer.element("div"); // <-- This is only simple example. In
real, I
need more complex container.
// <-- here write block to writer. How to do this?
writer.end();
}
The issue here is how to render something after you render the block. I
guess you need to implement it as a RenderCommand. It receives the render
queue (RenderQueue instance), so you can add more RenderCommands to it. To
render a Block inside a RenderCommand, cast it to RenderCommand and add it
to the queue.
--
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