velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Bauman" <n...@cortexity.com>
Subject Re: Velocity exits foreach loop in macro unpredictably,
Date Mon, 05 Nov 2001 16:15:37 GMT
> 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.

> -- 
> Geir Magnusson Jr.                                    
> geirm@optonline.net System and Software Consulting
> "He who throws mud only loses ground." - Fat Albert
> 

-Nick


--
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