You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa Gomez" <da...@xsall.nl> on 2003/12/07 14:09:10 UTC

Re: recursive nesting of components

Jim Frederic wrote:

> I'm writing a Tree, so I wrote a component to render a single level 
> (all the children of one node) and then had it's html template contain 
> itself.
>
> Treelevel.html
> <span jwcid="@Foreach" source="ognl:parent" value="ognl:child">
>    <span jwcid="@Insert" value="ognl:child.name"/>
>    <span jwcid="@Conditional" condition="ognl:child.hasChildren()">
>       <span jwcid="@Treelevel" parent="ognl:child"/>
>    </span>
> </span>
>
> Apparently the recursion is infinite when the page is loaded.  I was 
> hoping the Conditional would stop the recursion, but alas!
>
> Any suggestions for how to recurse a component in its HTML template?

Hi Jim,

Did you get this recursive issue resolved?
I'm trying to finalize a TreeTable that maintains state on the client 
and I am also running into the recursiveness issue.

If you resolved it is there any chance you could give me some pointers 
on this one?

I might be able to fix it myself but I always fell somewhat ... trying 
to re-invent the wheel.

TIA
Fermin DCG

>
> -Jim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org