You can do so by using a custom event handler:

1) write your custom event handler:

package foo;

import org.apache.velocity.app.event.ReferenceInsertionEventHandler;

public class QuietReferenceInsertionHandler
    implements ReferenceInsertionEventHandler
{
    public Object referenceInsert(String reference, Object value)
    {
        return value == null ? "" : value ;
    }
}

2) declare it in velocity.properties:

eventhandler.referenceinsertion.class = foo.QuietReferenceInsertionHandler

I guess it's all you need...


   Claude

Le mercredi 13 février 2008 à 16:47 -0600, csanders a écrit :
> Is there a way to make 'quiet notation' the default behavior, so if 
> $thisEvaluatesToNull , it simply would not display ?
> 
> 
> Thanks!
> Charlie
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to