Disclaimer - I'm a complete Lift newbie, so please forgive any glaring
oversights.

I've been playing around with Lift, and in particular CometActor.
Before trying to write my own, I thought that I'd get the example
Clock actor working. So I created a blank archetype with:

mvn archetype:create -U -DarchetypeGroupId=net.liftweb -
DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=0.9 -
DremoteRepositories=http://scala-tools.org/repo-releases -
DgroupId=net.liftweb.pbtest -DartifactId=pbtest-lift

And copied the Clock code from sites/example into it. And it fails
when I try to compile with:

[WARNING] /Users/paul/pbtest-lift/src/main/scala/net/liftweb/pbtest/
comet/Clock.scala:11: error: overloaded method constructor CometActor
with alternatives (net.liftweb.http.CometActorInitInfo)
net.liftweb.http.CometActor <and>
(net.liftweb.http.LiftSession,net.liftweb.util.Can
[String],scala.xml.NodeSeq,Map[String,String])
net.liftweb.http.CometActor cannot be applied to ()

I've managed to fix it by changing the following line:

class Clock extends CometActor {

to

class Clock(info: CometActorInitInfo) extends CometActor(info) {

and now everything works just fine. This change was inspired by the
code on:

http://liftweb.net/index.php/CometActor

But what I'm not sure about is why I had to make the change. I'd be
grateful for any light anyone could cast on this for me.

Thanks in advance,

Paul.

--~--~---------~--~----~------------~-------~--~----~
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