velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: Velocity exits foreach loop in macro unpredictably,
Date Mon, 05 Nov 2001 17:28:39 GMT
On 11/5/01 11:15 AM, "Nick Bauman" <> wrote:

>> Nick,
>> This bug may be related to your problem.
>> <>.
>> Bottom line: Make sure that template caching is on in production if it
>> is not. You may have to play with macros inline local scope setting
>> too.
>> -Peter
> When I fooled with the inline stuff I got wierd results because I was
> reusing the same I now make a new VelocityContext for
> each merge(), so maybe I can turn that on again. It's worth a try???
> Thanks, and I'll give caching a try too and report back.
>> I'm not so sure - if he was seeing that, it would be the case that he
>> saw #<macroname> in the output for each call.
> I wasn't seeing #<macroname> at all.

So you were seeing that the #macro() was invoked, because you got some of
the items in the list, but you weren't getting through the list every time?

Geir Magnusson Jr.                           
System and Software Consulting
"He who throws mud only loses ground." - Fat Albert

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message