Hi,
Is rendering of a block possible directly from Java code?
I know that I can return a block from a rendering phase method:
Object beginRender()
{
if (someCondition) {
return someBlock; // of type org.apache.tapestry5.Block
}
...
}
However, can I do something like
Object beginRender(MarkupWriter writer)
{
writer.write("Leading text");
if (someBlock != null)
{
writer.renderBlock(someBlock); // this method does not actually exist
}
writer.write("Trailing text");
}
Thanks.
Jarda
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]