Hi,
As I make my way removing deprecated methods from Lift (the framework
repo for now), I decided to check the examples repo, to make sure we
are not using any of the deleted methods there.
While doing that, I ended up with this error:
[error] /Users/diego.medina/Desktop/work/lift/examples/combo/example/src/main/scala/net/liftweb/example/snippet/AjaxForm.scala:53:
constructor cannot be instantiated to expected type;
[error] found : (T1, T2)
[error] required: net.liftweb.http.GUIDJsExp
[error] val (name, js) = ajaxCall(JE.JsRaw("this.value"),
[error] ^
I know David added GUIDJsExp [1] so that we no longer have to call
._2.toJsCmd, and I see there is a implicit conversion :
object GUIDJsExp {
implicit def guidToTuple(in: GUIDJsExp): (String, JsExp) = (in.guid, in.exp)
but somehow the implicit is not kicking in here, if I change the line:
def show(xhtml: Group): NodeSeq = {
val (name, js) = ajaxCall(JE.JsRaw("this.value"),
s => After(200, replace(s)))
for
def show(xhtml: Group): NodeSeq = {
val (name, js) = GUIDJsExp.guidToTuple(ajaxCall(JE.JsRaw("this.value"),
s => After(200, replace(s))))
then it compiles just fine. Any ideas of what is going on here?
[1]
https://github.com/lift/framework/blob/master/web/webkit/src/main/scala/net/liftweb/http/SHtml.scala#L2242
Thanks
Diego
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com