velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csanders <csand...@hoovers.com>
Subject Re: Velocity evaluation with null
Date Thu, 03 Jan 2008 22:46:32 GMT
Ahh thanks Nathan!

I will look at extending ContextTool also.

On Thu, 2008-01-03 at 14:40 -0800, Nathan Bubna wrote:
> Use quiet notation:
> 
> $!myObject.getSomethingThatMightBeNull()
> 
> On Jan 3, 2008 1:48 PM, csanders <csanders@hoovers.com> wrote:
> > Currently when something evaluates to null it just shows the literal
> > text, like $myObject.getSomethingThatMightBeNull() .
> >
> > Is there to tell velocity to spit out an empty string instead of leaving
> > it in the HTML ?
> >
> > Thanks,
> > Charlie
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> > For additional commands, e-mail: user-help@velocity.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message