You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2009/09/26 01:50:43 UTC
Re: like component
Please take this to the user mailing list.
<t:block> is not a component in T5, it is a special directive.
However, a component has access to its own body, which is
(effectively) a block. You can inject CoponentResources and invoke
getBody() to get a Block that can be used to render the body of the
component
On Fri, Sep 25, 2009 at 1:08 PM, deian <de...@gmail.com> wrote:
>
> Hey guys,
>
> I want to create a <t:block/> like component i.e component that will be find
> by :
>
> ComponentResources res = resources.getContainerResources();
> Block temp = res.findBlock("block id");
>
> I looked around but I couldn't find a component for <t:block/> :/
>
> Cheer,
> Deian
> --
> View this message in context: http://www.nabble.com/%3Ct%3Ablock-%3E-like-component-tp25618464p25618464.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org