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 18:01:59 UTC

DO NOT REPLY [Bug 16239] - 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"

geirm@optonline.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From geirm@optonline.net  2003-01-19 17:01 -------
There are two ways to do what you want :1) make your template use "quiet references"  like $!b, which prevents "$b" from being rendered if there is no object in the context for "b"2) Make a little context wrapper that will return "" for anything not found in the context.  This won't solve the problem for things like      $foo.barwhen you want to call a method or access a property on the referent.If you still think that we need a feature that makes all references implicitly quiet, lets discuss on the lists.

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