You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Dezider Mesko <d....@sh.cvut.cz> on 2007/06/26 19:33:18 UTC
null, true, false
Hello,
I want to have checked html checkbox when my value is undefined (default
value is checked) or variable is true.
<input #errorClass("aktivni") size="30" id="aktivni" type="checkbox"
name="aktivni" #if($OsobaNovaForm.aktivni==false) #else checked#end/>
This of course doesnt work. Some ideas how to distinguish false and null
value?
thx d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: null, true, false
Posted by dizzi <D....@sh.cvut.cz>.
thank you nathan, few seconds after post, Ive found error on my side too...
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org
Re: null, true, false
Posted by Nathan Bubna <nb...@gmail.com>.
#if ( "$OsobaNovaForm.aktivni" != "" ) checked#end
On 6/26/07, Dezider Mesko <d....@sh.cvut.cz> wrote:
> Hello,
> I want to have checked html checkbox when my value is undefined (default
> value is checked) or variable is true.
>
> <input #errorClass("aktivni") size="30" id="aktivni" type="checkbox"
> name="aktivni" #if($OsobaNovaForm.aktivni==false) #else checked#end/>
>
> This of course doesnt work. Some ideas how to distinguish false and null
> value?
>
> thx d.
>
> ---------------------------------------------------------------------
> 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