You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2008/09/03 06:53:44 UTC
[jira] Updated: (VELOCITY-62) Macro scope nesting
[ https://issues.apache.org/jira/browse/VELOCITY-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna updated VELOCITY-62:
---------------------------------
Attachment: Velocity62TestCase.java
Simple test case to demonstrate the problem, for anyone interested.
> Macro scope nesting
> -------------------
>
> Key: VELOCITY-62
> URL: https://issues.apache.org/jira/browse/VELOCITY-62
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.2
> Environment: Operating System: other
> Platform: All
> Reporter: Steven Hugg
> Priority: Minor
> Fix For: 1.6
>
> Attachments: Velocity62TestCase.java
>
>
> A problem with recursing macros is that scopes are not nested
> when "velocimacro.context.localscope" is set to true. That is, a get() on a
> context does not percolate to a parent context if the get() returns null. This
> prevents accessing global variables in the context. The desired behavior
> (IMHO) would be for set()s to be local to the macro, and get()s to percolate up
> to the parent if not found.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org