Hello why tapestry don't suport recursivity? i know that recursivity is not imprescindible but many times is the siplest solution.
I read the TreeIterator that Viktor coments but i think that this a lot of extra code to write and like tapestry is about simplify thinks i don't want to use this aproach I read too the article in http://www.behindthesite.com/blog/C1931765677/E923478269/index.html but i can understand how to apply it to my problem. any ideas? is this behavior changuing in 4.x if yes i intersting in switch to 4.x now Thanks to all tapestry comunity On 5/24/05, Viktor Szathmary <[EMAIL PROTECTED]> wrote: > 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]
