Note that there are some explanatory texts on larger screens.

plurals
  1. POscala lift actor, error: type mismatch;
    primarykey
    data
    text
    <p>Greetings</p> <p>I'm using the scala version 2.8.0 and version 2.1 of lift to compile my project with maven I mark the following error:</p> <pre> error: type mismatch; [INFO] required: **scala.actors.Actor** [INFO] Auctioneer !? AddListener(**this**, this.itemId) match { [INFO] ^ error: type mismatch; [INFO] required: **scala.actors.Actor** [INFO] Auctioneer ! RemoveListener(**this**, this.itemId) [INFO] ^ </pre> <p>the file is:</p> <pre><code>package org.developerworks.comet import net.liftweb.http._ import net.liftweb.common.Full import net.liftweb.http.S._ import net.liftweb.http.SHtml._ import net.liftweb.http.js.JsCmd import net.liftweb.http.js.JsCmds._ import net.liftweb.http.js.JE._ import net.liftweb.util.Helpers._ import net.liftweb.util._ import scala.xml.NodeSeq import org.developerworks.model._ import org.developerworks.actor._ import java.lang.Long class AuctionActor extends CometActor { var highBid : TheCurrentHighBid = null override def defaultPrefix = Full("auction") val itemId = S.param("itemId").map(Long.parseLong(_)).openOr(0L) def render = { def itemView: NodeSeq = { val item = if (itemId &gt; 0) ItemMetaData.findByKey(itemId).openOr(ItemMetaData.create) else ItemMetaData.create val currBid = item.highBid val bidAmt = if (currBid.user.isEmpty) 0L else currBid.amount.is highBid = TheCurrentHighBid(bidAmt, currBid.user.obj.openOr(User.currentUser.open_!)) val minNewBid = highBid.amount + 1L val button = &lt;button type="button"&gt;{S.?("Bid Now!")}&lt;/button&gt; % ("onclick" -&gt; ajaxCall(JsRaw("$('#newBid').attr('value')"), bid _)) (&lt;div&gt; &lt;strong&gt;{item.name}&lt;/strong&gt; &lt;br/&gt; &lt;div&gt; Current Bid: ${highBid.amount} by {highBid.user.niceName} &lt;/div&gt; &lt;div&gt; New Bid (min: ${minNewBid}) : &lt;input type="text" id="newBid"/&gt; {button} &lt;/div&gt; {item.description}&lt;br/&gt; &lt;/div&gt;) } bind("foo" -&gt; &lt;div&gt;{itemView}&lt;/div&gt;) } def bid(s:String): JsCmd = { val user = User.currentUser.open_! Auctioneer ! BidOnItem(itemId, Long.parseLong(s), user) Noop } override def localSetup { Auctioneer !? AddListener(this, this.itemId) match { case Success(true) =&gt; println("Listener added") case _ =&gt; println("Other ls") } } override def localShutdown { Auctioneer ! RemoveListener(this, this.itemId) } override def lowPriority : PartialFunction[Any, Unit] = { case TheCurrentHighBid(a,u) =&gt; { highBid = TheCurrentHighBid(a,u) reRender(false) } case _ =&gt; println("Other lp") } } </code></pre> <p>anyone can tell me I'm missing or am I doing wrong</p> <p>I had compiled this project in version 2.7.3 and had no problems</p> <p>help please!!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload