def buildNames(current: String, limit: Int): Seq[String] = {
data.filter(_.matches(".*" + current + ".*"))
}
def buttonClick = "#submit [onclick]" #> SHtml.ajaxInvoke( () => process )
def render = {
"id=kto" #> SHtml.select(users, Empty, id => kto = id) &
"id=data_od" #> SHtml.text(data_od, data_od = _) &
"id=data_do" #> SHtml.text(data_do, data_do = _) &
"id=dzien_wczesniej" #> SHtml.checkbox(dzien_wczesniej, dzien_wczesniej = _) &
"id=gdzie" #> (AutoComplete("", buildNames _, gdzie = _))
}
AutoComplete shows list of results fine but when i choose some value from the list, as a value of "gdzie" I have null..