Attribute title in error message box not a NodeSeq
According to this discussion:
http://groups.google.com/group/liftweb/browse_thread/thread/0c10d75fc1678d1d/4eb4f878014fd727#4eb4f878014fd727
http://groups.google.com/group/liftweb/browse_thread/thread/0c10d75fc1678d1d/4eb4f878014fd727#4eb4f878014fd727
Leave a comment
We'll see if we can get this into 2.2-M2
Would be nice to have this asap since I don't think it will do any damage to existing applications.
The following changes did the trick for me:
val title : String = (styles \\ noticeType.titleTag).filter(_.prefix == "lift").map(_.text.trim).headOption getOrElse ""
changed to:
val title : NodeSeq = (styles \\ noticeType.titleTag).filter(_.prefix == "lift").flatMap(_.child)
case class AjaxMessageMeta(title: String, cssClasses: Box[String])
changed to:
case class AjaxMessageMeta(title: NodeSeq, cssClasses: Box[String])
The following changes did the trick for me:
val title : String = (styles \\ noticeType.titleTag).filter(_.prefix == "lift").map(_.text.trim).headOption getOrElse ""
changed to:
val title : NodeSeq = (styles \\ noticeType.titleTag).filter(_.prefix == "lift").flatMap(_.child)
case class AjaxMessageMeta(title: String, cssClasses: Box[String])
changed to:
case class AjaxMessageMeta(title: NodeSeq, cssClasses: Box[String])
(In revision:3dc0f94b578fffde40f7293c0039953bb7069e8f) Notice titles can now be NodeSeqs
Closes #711
Branch: master
Closes #711
Branch: master