You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Francois Armand <fa...@linagora.com> on 2008/08/20 09:37:00 UTC

Re: question about recursion in a component.

Antonio Ordoñez wrote:
> Hallo everybody.
>
> My question is about how could I implement a recursion in tapestry 5?
Tapestry does not support recursion. It's a pity, especially for your 
very use case, but according to Howard, it's a design choice that brings 
simplicity, scaling possibility and other good things.

So, you will have to change your recursion to an imperative loop. 
Fortunally, it's simple enought for a tree component (you can find an 
example here : 
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-common/branches/wui-common/src/main/java/org/interldap/wui/t5lib/components/Tree.java?rev=389&view=markup
Be carefull, it was for a very old version of T5 (perhaps 5.0.6 or so, 
and I believe a lot of thing are simplier now).

Hope it help,

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/
Open Source identities management and federation


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