Hello,
I'm playing around with the AutoComplete widget, or rather trying to
play around with it. I've looked at the example project called
'example' that is included in the Lift-1.1-M8 version of lift (which
compiles and runs smoothly) but when i try to integrate it in my own
project i get the following error
-- error message starts --
[INFO] Compiling 10 source files to /Users/Mads/Projects/ScalableKvidr/
target/classes at 1262968735752
[ERROR] /Users/Mads/Projects/ScalableKvidr/src/main/scala/
scalableKvidr/snippet/Ajax.scala:6: error: value widgets is not a
member of package net.liftweb
[INFO] import _root_.net.liftweb.widgets.autocomplete._
-- error message ends --
My snippet Ajax.scala is pretty much just a copy of the one in the
example project. I just copied all the imports so quite a few of them
aren't really needed but i'll clean that up later :)
-- Ajax.scala starts --
package scalableKvidr.snippet
import _root_.net.liftweb.http._
import _root_.net.liftweb.widgets.autocomplete._
import S._
import SHtml._
import js._
import js.jquery._
import http.jquery._
import JqJsCmds._
import JsCmds._
import common._
import util._
import Helpers._
import _root_.scala.xml.{Text, NodeSeq}
class Ajax {
def autosuggest(in: NodeSeq) {
bind("ajax",in,"auto" -> AutoComplete("", buildQuery _, _ => ()))
}
private def buildQuery(current: String, limit: Int): Seq[String] = {
(1 to limit).map(n => current+""+n)
}
}
-- Ajax.scala ends --
I'm running the newest version of Lift so i don't understand why it
can't find the package
-- lift dependency in pom.xml --
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mapper</artifactId>
<version>1.1-M8</version>
</dependency>
-- lift dependency in pom.xml ends --
Hope you guys will be able to help me out once again and that i'll be
able to help other once I get more experience with Scala and Lift :)
--
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.