In Scala, imports are relative, unless you make them absolute. In this case, your package is main.scala.com.liftworkshop.snippet
The: import scala.xml.{NodeSeq} tells the compiler to look for _root_.main.scala.xml.NodeSeq That is not found. There are two ways to deal: 1. Change your package to not include scala in the path (I'd strongly recommend this) 2. Make your import absolute: import _root_.scala.xml.{NodeSeq} Thanks, David On Tue, Mar 24, 2009 at 10:50 AM, mizage <miz...@gmail.com> wrote: > > package main.scala.com.liftworkshop.snippet > > import scala.xml.{NodeSeq} > import com.liftworkshop._ > import model._ > > class Util { > def in(html: NodeSeq) = > if (User.loggedIn_?) html else NodeSeq.Empty > > def out(html: NodeSeq) = > if (!User.loggedIn_?) html else NodeSeq.Empty > } > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---