Recursion within webmacro templates
Holger King <[email protected]> Mon, 06 Mar 2006 16:55:15 +0100
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Organization | DIG Digital Informatin Group |
| Message-ID | <[email protected]> |
Hi Group,
is it possible to realize a webmacro recursion within a webmacro
template like:
#macro counter($counterParam) {
CounterParam: $counterParam<br/>
#set $digit = $counterParam + 1
#if($digit < 10)
$digit < 10!
#counter($digit)
#end
#else
$digit >= 10
#end
}
#counter(1)
I always get an StackOverflowError when calling the above template. If
the are alternatives using other webmacro directives implementing a
recursion logic, tell me further details. Thanx in advance.
Kind regards,
Holger King
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642