velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dezider Mesko <d.me...@sh.cvut.cz>
Subject null, true, false
Date Tue, 26 Jun 2007 17:33:18 GMT
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


Mime
View raw message