I have the code below which is supposed to take retrieve a list of strings and return them to an option menu. However, I get an error at the #> after the autocomplete in the snippet that says "could not find implicit value for parameter computer: net.liftweb.util.CanBind[scala.xml.NodeSeq with Int => scala.xml.NodeSeq]"
// The html code
<select id="autoComplete" class="marketplace.pharmacy.list">
<option id="drug">Drug Name</option>
</select>
// The snippet
def getAutoComplete(str: String): CssSel = "#autoComplete" #> {
getRxAutoComplete(str) match {
case list => "select" #> list.map { drug =>
drug #> ("option *" #> drug)
}
case List() => NodeSeq.Empty
}
}
// The code to return the results (simplified)
def getRxAutoComplete(str: String): List[String] = {
val list = List("Amoxicillin", "Amoximoxi", "Amoxia")
list
}