"@domain-choose" #> SHtml.onSubmitBoolean(RV.domainChoose(_))
case s : String => {val sl = s.toLowerCaseif (sl.length == 0) falseelse {if (sl.charAt(0) == 't') trueelse if (sl == "yes") trueelse toInt(s) != 0}}So default checked value is converted to false. I think "on" should be converted to true as well.P.S. IMHO it is very strange toBoolean behavior for Strings, my usual is "false","off","no","0","" are false, others are true. Is there some specification for such conversion?
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code