Note that there are some explanatory texts on larger screens.

plurals
  1. POerror: not found: value Auctioneer (LiftActor)
    primarykey
    data
    text
    <p>Greetings</p> <p>I have the following class</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) } 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>When compiling with maven sent me the following error:</p> <p>[ERROR] AuctionActor.scala:64: error: not found: value Auctioneer [INFO] Auctioneer ! BidOnItem(itemId, Long.parseLong(s), user) [INFO] ^ [ERROR] AuctionActor.scala:71: error: not found: value Auctioneer [INFO] Auctioneer !? AddListener(this, this.itemId) match { [INFO] ^ [ERROR] AuctionActor.scala:83: error: not found: value Auctioneer [INFO] Auctioneer ! RemoveListener(this, this.itemId)</p> <p>Auctioneer class (LiftActor), call with the line:</p> <p>import org.developerworks.actor._</p> <p>anyone know what I'm doing wrong</p> <p>please help</p>
    singulars
    1. This table or related slice is empty.
    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.
    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