Skip to content

Commit

Permalink
mapper: 2.10: MappedField: Node=>scala.xml.Node
Browse files Browse the repository at this point in the history
  • Loading branch information
Naftoli Gugenheim committed Sep 19, 2012
1 parent 196122b commit e179760
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -449,7 +449,7 @@ trait MappedField[FieldType <: Any,OwnerType <: Mapper[OwnerType]] extends Typed


def toForm: Box[NodeSeq] = {
def mf(in: Node): NodeSeq = in match {
def mf(in: scala.xml.Node): NodeSeq = in match {
case g: Group => g.nodes.flatMap(mf)
case e: Elem => e % toFormAppendedAttributes
case other => other
Expand Down Expand Up @@ -690,7 +690,7 @@ trait MappedField[FieldType <: Any,OwnerType <: Mapper[OwnerType]] extends Typed
case _ => false
}

override def asHtml : Node = Text(toString)
override def asHtml: scala.xml.Node = Text(toString)
}

object MappedField {
Expand Down

0 comments on commit e179760

Please sign in to comment.