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=16239>.
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=16239

velocity should have a "clearAllReferences"

           Summary: velocity should have a "clearAllReferences"
           Product: Velocity
           Version: 1.3-rc1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Source
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


velocity should have a "clearAllReferences" option to eliminate unreplaced 
template references.
e.g. 
VelocityEngine ve = new VelocityEngine();
String templateString = "$a$b";
ve.setProperty( "clearAllReferences", "true"); //<==new request
VelocityContext context = new VelocityContext();
context.put("a", "A");
ve.evaluate( context, writer, "mystring", templateString );
//writer == "A", note $b disappears.
//if we want $b not to disappear, either "clearAllReferences" to "false", or 
//use templateString = "$a$$b";

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to