velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
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" <nick@cortexity.com> wrote:

>> Nick,
>> 
>> This bug may be related to your problem.
>> 
>> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4483>.
>> 
>> 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 VelocityContext.java. 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.                                     geirm@optonline.net
System and Software Consulting
"He who throws mud only loses ground." - Fat Albert


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message