[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to