The field method is a bit of syntactic sugar for creating fields using field generators. It uses the default values from this generator to create the field.
The makeField method allows you to get the exact specifications of your field.
, " ". , FormVendor, . , makeField.
makeField . , makeField("Password", "", SHtml.password(is, set _))
object MyScreen extends LiftScreen {
val password = new Field {
type ValueType = String
override def name = "Password"
override implicit def manifest = buildIt[String]
override def default = ""
override def toForm: Box[NodeSeq] = SHtml.password(is, set _)
}
}
( LiftScreen)
. -, "", Lift Wiki : " → LiftRules.vendForm . , , .