Most likely, you don't really need recursive components. Try unrolling
your hierarchical calls to an iterator, or use a component like the
tacos:Tree (http://tacos.sf.net/).

Even if the tree component doesn't work for you, tacos has a
TreeIterator that you can use to do hierarchical iteration (while
tracking depth).. See the source:

http://cvs.sourceforge.net/viewcvs.py/tacos/tacos/src/net/sf/tacos/tree/TreeIterator.java?rev=1.2&view=auto

  viktor

On 5/23/05, pepone pepone <[EMAIL PROTECTED]> wrote:
>  can any body say me if recursive components are suported in 4.x
> 
> On 5/23/05, Mark Dillon <[EMAIL PROTECTED]> wrote:
> > Recursive components are not supported in Tapestry 3.x.  Here's an
> > explanation and a potential solution:
> >
> > http://www.behindthesite.com/blog/C1931765677/E923478269/index.html
> >
> > Thanks,
> > Mark
> >
> > On 5/23/05, pepone pepone <[EMAIL PROTECTED]> wrote:
> > > I have a TreeItem component and i want that if TreeItemModel hasChilds
> > > render it in a Foreach component but allways i get a
> > > java.lang.StackOverFlow exception
> > >
> > > here is the component
> > >
> > > <span jwcid="$content$">
> > >         <div class="Label">
> > >                 <div jwcid="@Insert" value="ognl:model.getLabel(0)"/>
> > >     </div>
> > >     <div jwcid="@Conditional" condition="ognl:model.hasChilds()">
> > >             <div class="Childs">
> > >                <div jwcid="@Foreach" source="ognl:model.iterator" 
> > > value="ognl:item">
> > >                            <div jwcid="@TreeItemView" 
> > > model="ognl:object"/>
> > >                 </div>
> > >             </div>
> > >     </div>
> > > </span>
> > >
> > > ---------------------------------------------------------------------
> > > 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