velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Tonchev <t...@xi-tec.com>
Subject Are inline macros cached somewhere?
Date Mon, 28 Aug 2006 12:52:28 GMT
Hello!

I have the following problem:

I have two pages userRequests.vm and vendorRequests.vm.

The first one has userRequests.vm:
#macro( requestItemActions $requestId )
        <user specific actions>
#end
#parse("includes/requestView.vm")
-----------------

And the second one vendorRequests.vm:
#macro( requestItemActions $requestId )
        <vendor specific actions>
#end
#parse("includes/requestView.vm")
------------------

The file that is included (includes/requestView.vm) contains an
interation over some items and calls the macro requestItemActions for
each item.

The problem is that the inline defined macro is somewhat cached
because after the first parse of the temlate it is remambered and in
both pages (vendorRequest.vm and userRequest.vm) is used the same
template.

Do you have any idea why it is not working?

I tried with the
velocimacro.permissions.allowInlineToOverride=true
but it still isn't working.

Thanks in advance.


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


Mime
View raw message