diff -r 641c7190c566 -r 94ed9cfdb123 src/main/scala/net/tz/lift/snippet/Panel.scala --- a/src/main/scala/net/tz/lift/snippet/Panel.scala Mon Apr 02 00:06:52 2012 +0200 +++ b/src/main/scala/net/tz/lift/snippet/Panel.scala Mon Apr 02 00:48:43 2012 +0200 @@ -15,13 +15,13 @@ */ package net.tz.lift.snippet -import net.liftweb.mapper.MappedField +import net.liftweb.util.BaseField import scala.xml.{NodeSeq, Text} object AttrRow { def apply(name: => NodeSeq, value: => NodeSeq) = new AttrRow(name, value, "attr-name", "attr-value") - def apply(f: MappedField[_, _]) = new AttrRow(Text(f.displayName), f.asHtml, + def apply(f: BaseField) = new AttrRow(Text(f.displayName), f.asHtml, "attr-name", "attr-value") def formRow(name: => NodeSeq, input: => NodeSeq) = new AttrRow(name, input, "form-name", "form-value") @@ -42,7 +42,7 @@ object Panel { def apply(attrs: Iterable[AttrRow]) = new Panel(attrs) - def fromFields(fields: Iterable[MappedField[_,_]]) = + def fromFields(fields: Iterable[BaseField]) = new Panel(fields.map(AttrRow(_))) }