velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Guidetti <>
Subject Recurivity with Velocimacro
Date Tue, 27 Mar 2001 13:06:16 GMT
Hi all,

I need to create a tree with Velocity. So I need to write a Velocimacro
(displaying subTree) and calling it recursivly.

I tried to do it like that but it doesn't work.

#macro (showsub $sub_root)
 #foreach ($child in $sub_root.getAllChilds())
    <td valign=top>
     <img src="/img/sommaire/carre.gif" vspace=5></td>

The first level of my tree is diplayed but the recurcivity doesn't work.
Any idea to do that ?


View raw message