Hi,

> For example common framework components (like Foreach, If, etc.) cache their parameters.

Actually, they used to, but they do not anymore and can participate in recursion. See http://issues.apache.org/jira/browse/TAPESTRY-654?page=all.

The following works well, for example:

   <comp jwcid="@RenderBlock" block="ognl:components.subMenuItems"/>
   <comp jwcid="[EMAIL PROTECTED]">
       <comp jwcid="@For" source="ognl:menuItems" value="ognl:menuItem">
           <comp jwcid="@Insert" value="ognl:menuItem.fullName"/><br/>
           <comp jwcid="@If" condition="ognl:menuItems != null">
               <comp jwcid="@Insert" value="  "/>
<comp jwcid="@RenderBlock" block="ognl:components.subMenuItems"/>
           </comp>
       </comp>
   </comp>


Norbert Sándor wrote:
It's not easy to implement currently.
For example common framework components (like Foreach, If, etc.) cache their parameters. In case of recursion this is often unacceptable. But caching can be specified only in the component specification, not per binding.

This means that when one had to use recursion it is necessary to write own recursion-safe Foreach, If, etc. components as well.

BR,
Norbi

----- Original Message ----- From: "Dan Adams" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Friday, November 04, 2005 7:52 PM
Subject: Re: circular references to components?


This seems kind of contrary to the good design seen in other parts of
tapestry. Is this going to be changed at all in the future? Recursion
seems like something that should not required a hack.

On Fri, 2005-11-04 at 10:24 -0800, Michael Henderson wrote:
Hi,
  No, it can't you have to use Block/RenderBlock see :


http://www.behindthesite.com/blog/C1931765677/E923478269/index.html


Mike

On Friday, November 04, 2005, at 10:18AM, Dan Adams <[EMAIL PROTECTED]> wrote:




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






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



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

Reply via email to