On Sat, 19 Jun 2010 19:09:47 -0300, Inge Solvoll <inge.tapes...@gmail.com>
wrote:
Thanks!
You're welcome!
Don't see how ComponentSource helps, how does it get me to the point
where I can retrieve a named block from a page/component?
Description in Slashdot style*:
1) Use ComponentSource.getPage(). It will return a page instance as a
Component object (in Tapestry 5, pages *are* components).
2) Then use Component.getComponentResources().findBlock(String blockId) to
get the block.
3) Use the Delegate component to render it. Alternatively, you can render
the Block by returning it in a method that handles a component rendering
event.
4) ????
5) Profit! :P
* I just discovered that this meme has its origins at a South Park episode.
--
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