On Mon, Nov 16, 2009 at 8:14 AM, dserodio <[email protected]> wrote:

>
> I'm a complete Lift (and Scala) newbie, and I'm trying to follow the
> "Starting with Lift" tutorial.
>
> I created a blank project and when I create a Todo.scala with the
> contents of "Listing 2: The ToDo model", I get a "Cannot resolve
> symbol IdPK". Which package contains this trait ?
>

Do you have the all of the following lines in your Todo.scala file:

import net.liftweb._
import mapper._
import http._
import SHtml._
import util._


The mapper package contains the trait.


>
> Also, are the mapper, http, SHtml and util packages "top-level" (ie,
> not contained in net.liftweb) ?
>

No, they are sub-packages of net.liftweb  Scala has a different (and more
flexible) package resolution mechanism than Java.  By doing import
net.liftweb._, you are saying, if any subpackage of net.liftweb is mentioned
(e.g., mapper._), you can resolve that to net.liftweb.mapper._

Thanks,

David


>
> TIA,
> Daniel Serodio
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to