Hi, I have got a Mapper with a numeric MappedField (let's say Int). What is the best way to convert and validate from a HTML form?
Obviously the following won't work: Mapper: class Course extends LongKeyedMapper[Course] with IdPK { override def getSingleton = Course object title extends MappedString(this, 50) object duration extends MappedInt(this) } Snippet: ... Helpers.bind("course", content, "title" -> SHtml.text(course.title.is, course.title(_)), "duration" -> SHtml.text(course.duration.is, course.duration(_)), ... Thanx Heiko -- My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: www.scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---