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: not recognizing changed templates
Date Tue, 07 Aug 2001 12:33:10 GMT
(catching up...)

"Stewart, Robbie (Contractor)" wrote:
> 
> If the changes are to macros they do not show (by default)
> unless you bounce the web server. Are you talking about trying
> the same (non-macro) change via network share c.f. via server?

That's not 100% true.

You can make macros change - however you have to have the properties set
right.

The relevant properties are :

velocimacro.permissions.allow.inline - default true 

velocimacro.permissions.allow.inline.to.replace.global - default *FALSE*

velocimacro.permissions.allow.inline.local.scope - default false


The 2nd is the important one.  Set that to true, and then your inline
definitions can replace the global ones.  If you have a library, just
get velocity to parse again the library - no need to dump the server.

geir


-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
Well done is better than well said - New England Proverb

Mime
View raw message