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 2003/01/19 16:27:22 UTC
DO NOT REPLY [Bug 16239] New: -
velocity should have a "clearAllReferences"
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: velocity-dev@jakarta.apache.org
ReportedBy: wkwing@hotmail.com
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>