Elements with ajaxInvoke not rendered using setHtml in comet [Lift-2.0-scala280]
While trying to port an existing application from 2.7.7 to Lift-2.0-scala280-SNAPSHOT I discovered a issue where elements containing ajaxInvoke is not rendered when using setHtml in Comet.
When invoking the following partial update nothing seems to happen:
This works as expected however:
Link to example application:
git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git
The application compiles and runs as expected by editing pom.xml by replacing
See also: http://groups.google.com/group/liftweb/browse_thread/thread/44c543a239c598dc
When invoking the following partial update nothing seems to happen:
partialUpdate(SetHtml("field", <input type="button" onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi"/ >))
This works as expected however:
partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), <span>Link</span>)))
Link to example application:
git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git
The application compiles and runs as expected by editing pom.xml by replacing
<scala.version>2.8.0.Beta1</scala.version>
<lift.version>2.0-scala280-SNAPSHOT</lift.version>
with <scala.version>2.7.7</scala.version>
<lift.version>2.0-SNAPSHOT</lift.version>
See also: http://groups.google.com/group/liftweb/browse_thread/thread/44c543a239c598dc
Leave a comment
(In revision:06d76c29fb93549cafb44adb137843dcecec685f) Closes #357. Deal with changes in how Nodes are compared in 2.8
Branch: master
Branch: master