Problems with Text() (Scala Lift)
I have this snippet:
class WelcomeSnippet{
def list (xhtml : NodeSeq) : NodeSeq = {
object sessionUserType extends SessionVar[String](null)
Helpers.bind("entry", xhtml, "edit" -> SHtml.link("/provider",() => sessionUserType("provider"), Text("Edit")))
}
}
I think its ok, but I keep getting this:
Not found: value Text
I assume i should be importing something I'm not, but I can't find what it is for the life of me.
Here are my imports:
im开发者_如何学Goport _root_.scala.xml.NodeSeq
import _root_.net.liftweb.util._
import _root_.com.connector.model._
import Helpers._
import _root_.net.liftweb._
import _root_.net.liftweb.http._
Thanks.
import _root_.scala.xml.Text
精彩评论