I'm trying to use mixinAttributes, but get a scala.MatchError:
<function> (full error below). I'm using the 1.1 snapshot.
bind("f", xhtml,
"query" -> mixinAttributes(SHtml.text(query, query = _)) _,
"submit" -> SHtml.submit("Submit", processSearch)
)
<lift:MyItems.search form="POST">
Query:<br />
<f:query><input id="hello" /></f:query>
</lift:MyItems.search>
Can someone please let me know if I'm doing something wrong.
Message: scala.MatchError: <function>
scala.runtime.ScalaRunTime$.boxArray(ScalaRunTime.scala:135)
net.liftweb.util.BindHelpers$FuncBindParam.value(BindHelpers.scala:
217)
net.liftweb.util.BindHelpers$FuncBindParam.calcValue
(BindHelpers.scala:218)
net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$
$anonfun$apply$8.apply(BindHelpers.scala:419)
net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$
$anonfun$apply$8.apply(BindHelpers.scala:414)
net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
$1$1.apply(BindHelpers.scala:413)
net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind
$1$1.apply(BindHelpers.scala:412)
scala.Seq$class.flatMap(Seq.scala:294)
scala.xml.NodeSeq.flatMap(NodeSeq.scala:34)
net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1
(BindHelpers.scala:412)
net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:
429)
net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:
397)
net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65)
net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:397)
net.liftweb.util.BindHelpers$.bind(BindHelpers.scala:72)
net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:368)
net.liftweb.util.BindHelpers$.bind(BindHelpers.scala:72)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---