You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2002/04/10 02:07:02 UTC

DO NOT REPLY [Bug 7899] New: - Macro scope nesting

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7899>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7899

Macro scope nesting

           Summary: Macro scope nesting
           Product: Velocity
           Version: 1.2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: hugg@pobox.com


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.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>