val books: List[Book] = Books.all //Book is MappedOneToMany Object
books match {
case Nil => "was an empty list"
case x :: xs => {
object book extends ScreenVar(xs)
addFields(() => book) // error: type mismatch;
//[INFO] found : book.type (with underlying type object up)
//[INFO] required: net.liftweb.util.FieldContainer
//[INFO] addFields(() => book)
}
}
--
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
Encountered another problem:books.foreach(book => {object bFields extends ScreenVar(book)addFields(() => bFields)})