On Fri, 17 Jan 2003 [EMAIL PROTECTED] wrote:

> 
> I am using the latest available release (1.3rc2) and am being bitten 
> badly by the bug described here:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=13623
> 
> "Use of Velocimacro forward reference and/or recursion causes error messages"
> 
> error : too few arguments to macro.
> 
> Use of recursion is critical to me, as I use Velocity to render a tree 
> structure recursively, which would be very cumbersome to do with JSP or 
> straight servlets.
> 
> Is there a safe version of Velocity which implements recursion?

Hi Aaron.  Don't know of one off hand, but as a (possibly kludy) work 
around, you could add a Java class to your Velocity context which does this 
recursive call for you.  Or, you could add a Velocity object to peform 
rendering from within a small template, and have the template render itself 
recursively.

Personally, I'd rather just be able to call Velocimacros recursively, but 
haven't found time to make fixing this bug a priority.

- Dan



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to