[Lift] Re: Converting from HTML form values to numeric MappedFields

2009-08-05 Thread Derek Chen-Becker
I think that you'll need to provide your own _toForm method on the field. Fortunately, it's a pretty trivial method (from MappedField.scala): 1. /** 2.* Create an input field for the item 3.*/ 4. override def _toForm: Box[NodeSeq] = 5. S.fmapFunc({s: List[String] =

[Lift] Re: Converting from HTML form values to numeric MappedFields

2009-08-04 Thread Heiko Seeberger
Ah, MappedFields know how to make themselves to form fields. Very nice! Next question: Now I can enter some characters into the MappedInt field and will get a 0 (zero) on form submission. But that is not what I want. I would like to show a validation message (FieldError). Any chances to hook into