<t:delegate to="block:myblock"/>

<t:block id="myblock">
 ...
</t:block>

What's missing is a way of providing context in the caller (the
Delegate component) that is accessible inside the block.

What I've been doing is using a more indirect, but also more typesafe,
approach of storing the data inside an Environmental service; the
caller uses Environment.push(), and the block uses the @Environmental
annotation to retrieve the value.  You can see this in action inside
BeanEditForm.

On 6/29/07, Dan Adams <[EMAIL PROTECTED]> wrote:
In t4 you could this:

<comp jwcid="@RenderBlock" block="component:block" foo="bar" />

<block jwcid="[EMAIL PROTECTED]">
  <ins jwcid="@Insert"
value="ognl:components.block.getParameter('foo')" />
</block>

Does such a thing exist in T5?

--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to