Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
On Tue, Feb 23, 2010 at 1:29 AM, tbje wrote: > Excellent! The fix (merged from branch) solved all my 2.8 porting > issues so far. > Cool. Please keep identifying issues like this. > > Thank you for solving this problem so quickly! > > On 23 Feb, 00:20, David Pollak wrote: > > On Mon, Feb 22, 2010 at 3:15 PM, Arie wrote: > > > Hi, > > > > > Can I clarify, is this a general issue to do with 2.8 Scala/Comet > > > Actors? I think I may be having the same problem. > > > > It's not CometActors that are causing the issue. In Scala 2.8, XML Node > > equality testing is changed and supplying a label method that returns a > > String (rather than Nothing) is a requirement. The fix for this issue is > on > > Review Board and has been approved. I'll likely get it rolled into > > master/280_port_refresh tomorrow. > > > > > > > > > > > > > > > > > Arie > > > > > On Feb 22, 12:02 pm, Indrajit Raychaudhuri > > > wrote: > > > > Understood, just wanted to ensure. > > > > > > Cheers, Indrajit > > > > > > On 22/02/10 4:25 PM, tbje wrote: > > > > > > > Hi Indrajit, > > > > > I was a little bit lazy and updated an old pom by hand. > > > > > > > Just pushed a new pom.xml using the following mvn > > > > > archetype:generate : > > > > > > > mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - > > > > > DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- > > > > > scala280-SNAPSHOT -DarchetypeRepository= > http://scala-tools.org/repo- > > > > > snapshots -DremoteRepositories= > http://scala-tools.org/repo-snapshots > > > > > > > Didn't solve the problem :( > > > > > > > Best regards > > > > > Trond > > > > > > > On 19 Feb, 16:32, Indrajit Raychaudhuri > wrote: > > > > >> Trond, > > > > > > >> From cursory glance it appears that some old form of archetype > (pre > > > > >>Lift2.0) had been used to generate the project. What command line > > > > >> option did you use in "mvn archetype:generate" to create the > project? > > > > > > >> This is just a request for qualification. > > > > > > >> Cheers, Indrajit > > > > > > >> On 19/02/10 8:22 PM, tbje wrote: > > > > > > >>> Thank you for rapid replies and a great framework. I opened > ticket > > > > >>> #357 for this issue. > > > > > > >>> Best regards > > > > >>> Trond > > > > > > >>> On 19 Feb, 15:22, Mariuswrote: > > > > Yeah AFAIK Scala 2.8 integration is not 100% done and fully > tested. > > > > > > Br's, > > > > Marius > > > > > > On Feb 19, 3:52 pm, tbje > wrote: > > > > > > > Hi Marius, > > > > > I discovered the issue while porting a working application from > > > 2.7.7 > > > > > tolift2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > > > > > > In the example application I provided it's possible to change > the > > > > > pom.xml by replacing > > > > > 2.8.0.Beta1 > > > > > 2.0-scala280-SNAPSHOT > > > > > with > > > > > 2.7.7 > > > > > 2.0-SNAPSHOT > > > > > and the application is working as I'd like it to :) > > > > > > > I therefor believe it's alift2.0-scala280 issue. > > > > > > > Best regards > > > > > Trond > > > > > > > On 19 Feb, 14:12, Mariuswrote: > > > > > > >> Can you also try with Scala 2.7.7 ? > > > > > > >> On Feb 19, 2:26 pm, tbje > wrote: > > > > > > >>> Hi, > > > > >>> I've been testing out theLift-2.0-scala280-SNAPSHOT a little > bit > > > and > > > > >>> found a issue with Cometactor, setHtml and ajaxInvoke. > > > > > > >>> When trying to invoke the following partial update nothing > seems > > > to > > > > >>> happen: > > > > >>> partialUpdate(SetHtml("field", > > > >>> onclick={ajaxInvoke(() =>JsRaw("alert('hi')"))._2} > value="Say > > > hi" / > > > > > > )) > > > > > > >>> This works as expected however: > > > > >>> partialUpdate(SetHtml("field", a(() => > JsRaw("alert('hi')"), > > > > >>> Link))) > > > > > > >>> I've created a example app to illustrate the problem if > someone > > > is > > > > >>> interested: > > > > > > >>> git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > > > >>> Best regards > > > > >>> Trond > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Lift" group. > > > To post to this group, send email to lift...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > liftweb+unsubscr...@googlegroups.com > > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/liftweb?hl=en. > > > > -- > > Lift, the simply functional web frameworkhttp://liftweb.net > > Beginning Scalahttp://www.apress.com/book/view/1430219890 > > Follow me:http://twitter.com/dpp > > Surf the harmonics > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@google
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Excellent! The fix (merged from branch) solved all my 2.8 porting issues so far. Thank you for solving this problem so quickly! On 23 Feb, 00:20, David Pollak wrote: > On Mon, Feb 22, 2010 at 3:15 PM, Arie wrote: > > Hi, > > > Can I clarify, is this a general issue to do with 2.8 Scala/Comet > > Actors? I think I may be having the same problem. > > It's not CometActors that are causing the issue. In Scala 2.8, XML Node > equality testing is changed and supplying a label method that returns a > String (rather than Nothing) is a requirement. The fix for this issue is on > Review Board and has been approved. I'll likely get it rolled into > master/280_port_refresh tomorrow. > > > > > > > > > Arie > > > On Feb 22, 12:02 pm, Indrajit Raychaudhuri > > wrote: > > > Understood, just wanted to ensure. > > > > Cheers, Indrajit > > > > On 22/02/10 4:25 PM, tbje wrote: > > > > > Hi Indrajit, > > > > I was a little bit lazy and updated an old pom by hand. > > > > > Just pushed a new pom.xml using the following mvn > > > > archetype:generate : > > > > > mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - > > > > DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- > > > > scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo- > > > > snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots > > > > > Didn't solve the problem :( > > > > > Best regards > > > > Trond > > > > > On 19 Feb, 16:32, Indrajit Raychaudhuri wrote: > > > >> Trond, > > > > >> From cursory glance it appears that some old form of archetype (pre > > > >>Lift2.0) had been used to generate the project. What command line > > > >> option did you use in "mvn archetype:generate" to create the project? > > > > >> This is just a request for qualification. > > > > >> Cheers, Indrajit > > > > >> On 19/02/10 8:22 PM, tbje wrote: > > > > >>> Thank you for rapid replies and a great framework. I opened ticket > > > >>> #357 for this issue. > > > > >>> Best regards > > > >>> Trond > > > > >>> On 19 Feb, 15:22, Marius wrote: > > > Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > > > Br's, > > > Marius > > > > On Feb 19, 3:52 pm, tbje wrote: > > > > > Hi Marius, > > > > I discovered the issue while porting a working application from > > 2.7.7 > > > > tolift2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > > > > In the example application I provided it's possible to change the > > > > pom.xml by replacing > > > > 2.8.0.Beta1 > > > > 2.0-scala280-SNAPSHOT > > > > with > > > > 2.7.7 > > > > 2.0-SNAPSHOT > > > > and the application is working as I'd like it to :) > > > > > I therefor believe it's alift2.0-scala280 issue. > > > > > Best regards > > > > Trond > > > > > On 19 Feb, 14:12, Marius wrote: > > > > >> Can you also try with Scala 2.7.7 ? > > > > >> On Feb 19, 2:26 pm, tbje wrote: > > > > >>> Hi, > > > >>> I've been testing out theLift-2.0-scala280-SNAPSHOT a little bit > > and > > > >>> found a issue with Cometactor, setHtml and ajaxInvoke. > > > > >>> When trying to invoke the following partial update nothing seems > > to > > > >>> happen: > > > >>> partialUpdate(SetHtml("field", > > >>> onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say > > hi" / > > > > )) > > > > >>> This works as expected however: > > > >>> partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > > >>> Link))) > > > > >>> I've created a example app to illustrate the problem if someone > > is > > > >>> interested: > > > > >>> git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > >>> Best regards > > > >>> Trond > > > -- > > You received this message because you are subscribed to the Google Groups > > "Lift" group. > > To post to this group, send email to lift...@googlegroups.com. > > To unsubscribe from this group, send email to > > liftweb+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/liftweb?hl=en. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
On Mon, Feb 22, 2010 at 3:15 PM, Arie wrote: > Hi, > > Can I clarify, is this a general issue to do with 2.8 Scala/Comet > Actors? I think I may be having the same problem. > It's not CometActors that are causing the issue. In Scala 2.8, XML Node equality testing is changed and supplying a label method that returns a String (rather than Nothing) is a requirement. The fix for this issue is on Review Board and has been approved. I'll likely get it rolled into master/280_port_refresh tomorrow. > > Arie > > On Feb 22, 12:02 pm, Indrajit Raychaudhuri > wrote: > > Understood, just wanted to ensure. > > > > Cheers, Indrajit > > > > On 22/02/10 4:25 PM, tbje wrote: > > > > > > > > > Hi Indrajit, > > > I was a little bit lazy and updated an old pom by hand. > > > > > Just pushed a new pom.xml using the following mvn > > > archetype:generate : > > > > > mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - > > > DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- > > > scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo- > > > snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots > > > > > Didn't solve the problem :( > > > > > Best regards > > > Trond > > > > > On 19 Feb, 16:32, Indrajit Raychaudhuri wrote: > > >> Trond, > > > > >> From cursory glance it appears that some old form of archetype (pre > > >>Lift2.0) had been used to generate the project. What command line > > >> option did you use in "mvn archetype:generate" to create the project? > > > > >> This is just a request for qualification. > > > > >> Cheers, Indrajit > > > > >> On 19/02/10 8:22 PM, tbje wrote: > > > > >>> Thank you for rapid replies and a great framework. I opened ticket > > >>> #357 for this issue. > > > > >>> Best regards > > >>> Trond > > > > >>> On 19 Feb, 15:22, Mariuswrote: > > Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > > > Br's, > > Marius > > > > On Feb 19, 3:52 pm, tbjewrote: > > > > > Hi Marius, > > > I discovered the issue while porting a working application from > 2.7.7 > > > tolift2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > > > > In the example application I provided it's possible to change the > > > pom.xml by replacing > > > 2.8.0.Beta1 > > > 2.0-scala280-SNAPSHOT > > > with > > > 2.7.7 > > > 2.0-SNAPSHOT > > > and the application is working as I'd like it to :) > > > > > I therefor believe it's alift2.0-scala280 issue. > > > > > Best regards > > > Trond > > > > > On 19 Feb, 14:12, Mariuswrote: > > > > >> Can you also try with Scala 2.7.7 ? > > > > >> On Feb 19, 2:26 pm, tbjewrote: > > > > >>> Hi, > > >>> I've been testing out theLift-2.0-scala280-SNAPSHOT a little bit > and > > >>> found a issue with Cometactor, setHtml and ajaxInvoke. > > > > >>> When trying to invoke the following partial update nothing seems > to > > >>> happen: > > >>> partialUpdate(SetHtml("field", > >>> onclick={ajaxInvoke(() =>JsRaw("alert('hi')"))._2} value="Say > hi" / > > > > )) > > > > >>> This works as expected however: > > >>> partialUpdate(SetHtml("field", a(() =>JsRaw("alert('hi')"), > > >>> Link))) > > > > >>> I've created a example app to illustrate the problem if someone > is > > >>> interested: > > > > >>> git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > >>> Best regards > > >>> Trond > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Hi, Can I clarify, is this a general issue to do with 2.8 Scala/Comet Actors? I think I may be having the same problem. Arie On Feb 22, 12:02 pm, Indrajit Raychaudhuri wrote: > Understood, just wanted to ensure. > > Cheers, Indrajit > > On 22/02/10 4:25 PM, tbje wrote: > > > > > Hi Indrajit, > > I was a little bit lazy and updated an old pom by hand. > > > Just pushed a new pom.xml using the following mvn > > archetype:generate : > > > mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - > > DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- > > scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo- > > snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots > > > Didn't solve the problem :( > > > Best regards > > Trond > > > On 19 Feb, 16:32, Indrajit Raychaudhuri wrote: > >> Trond, > > >> From cursory glance it appears that some old form of archetype (pre > >>Lift2.0) had been used to generate the project. What command line > >> option did you use in "mvn archetype:generate" to create the project? > > >> This is just a request for qualification. > > >> Cheers, Indrajit > > >> On 19/02/10 8:22 PM, tbje wrote: > > >>> Thank you for rapid replies and a great framework. I opened ticket > >>> #357 for this issue. > > >>> Best regards > >>> Trond > > >>> On 19 Feb, 15:22, Marius wrote: > Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > Br's, > Marius > > On Feb 19, 3:52 pm, tbje wrote: > > > Hi Marius, > > I discovered the issue while porting a working application from 2.7.7 > > tolift2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > > In the example application I provided it's possible to change the > > pom.xml by replacing > > 2.8.0.Beta1 > > 2.0-scala280-SNAPSHOT > > with > > 2.7.7 > > 2.0-SNAPSHOT > > and the application is working as I'd like it to :) > > > I therefor believe it's alift2.0-scala280 issue. > > > Best regards > > Trond > > > On 19 Feb, 14:12, Marius wrote: > > >> Can you also try with Scala 2.7.7 ? > > >> On Feb 19, 2:26 pm, tbje wrote: > > >>> Hi, > >>> I've been testing out theLift-2.0-scala280-SNAPSHOT a little bit and > >>> found a issue with Cometactor, setHtml and ajaxInvoke. > > >>> When trying to invoke the following partial update nothing seems to > >>> happen: > >>> partialUpdate(SetHtml("field", >>> onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" > >>> / > > )) > > >>> This works as expected however: > >>> partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > >>> Link))) > > >>> I've created a example app to illustrate the problem if someone is > >>> interested: > > >>> git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > >>> Best regards > >>> Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Understood, just wanted to ensure. Cheers, Indrajit On 22/02/10 4:25 PM, tbje wrote: Hi Indrajit, I was a little bit lazy and updated an old pom by hand. Just pushed a new pom.xml using the following mvn archetype:generate : mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo- snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots Didn't solve the problem :( Best regards Trond On 19 Feb, 16:32, Indrajit Raychaudhuri wrote: Trond, From cursory glance it appears that some old form of archetype (pre Lift 2.0) had been used to generate the project. What command line option did you use in "mvn archetype:generate" to create the project? This is just a request for qualification. Cheers, Indrajit On 19/02/10 8:22 PM, tbje wrote: Thank you for rapid replies and a great framework. I opened ticket #357 for this issue. Best regards Trond On 19 Feb, 15:22, Mariuswrote: Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. Br's, Marius On Feb 19, 3:52 pm, tbjewrote: Hi Marius, I discovered the issue while porting a working application from 2.7.7 to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. In the example application I provided it's possible to change the pom.xml by replacing 2.8.0.Beta1 2.0-scala280-SNAPSHOT with 2.7.7 2.0-SNAPSHOT and the application is working as I'd like it to :) I therefor believe it's a lift 2.0-scala280 issue. Best regards Trond On 19 Feb, 14:12, Mariuswrote: Can you also try with Scala 2.7.7 ? On Feb 19, 2:26 pm, tbjewrote: Hi, I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and found a issue with Comet actor, setHtml and ajaxInvoke. When trying to invoke the following partial update nothing seems to happen: partialUpdate(SetHtml("field",JsRaw("alert('hi')"))._2} value="Say hi" / )) This works as expected however: partialUpdate(SetHtml("field", a(() =>JsRaw("alert('hi')"), Link))) I've created a example app to illustrate the problem if someone is interested: git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git Best regards Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Hi Indrajit, I was a little bit lazy and updated an old pom by hand. Just pushed a new pom.xml using the following mvn archetype:generate : mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype-blank -DarchetypeVersion=2.0- scala280-SNAPSHOT -DarchetypeRepository=http://scala-tools.org/repo- snapshots -DremoteRepositories=http://scala-tools.org/repo-snapshots Didn't solve the problem :( Best regards Trond On 19 Feb, 16:32, Indrajit Raychaudhuri wrote: > Trond, > > From cursory glance it appears that some old form of archetype (pre > Lift 2.0) had been used to generate the project. What command line > option did you use in "mvn archetype:generate" to create the project? > > This is just a request for qualification. > > Cheers, Indrajit > > On 19/02/10 8:22 PM, tbje wrote: > > > > > Thank you for rapid replies and a great framework. I opened ticket > > #357 for this issue. > > > Best regards > > Trond > > > On 19 Feb, 15:22, Marius wrote: > >> Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > >> Br's, > >> Marius > > >> On Feb 19, 3:52 pm, tbje wrote: > > >>> Hi Marius, > >>> I discovered the issue while porting a working application from 2.7.7 > >>> to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > >>> In the example application I provided it's possible to change the > >>> pom.xml by replacing > >>> 2.8.0.Beta1 > >>> 2.0-scala280-SNAPSHOT > >>> with > >>> 2.7.7 > >>> 2.0-SNAPSHOT > >>> and the application is working as I'd like it to :) > > >>> I therefor believe it's a lift 2.0-scala280 issue. > > >>> Best regards > >>> Trond > > >>> On 19 Feb, 14:12, Marius wrote: > > Can you also try with Scala 2.7.7 ? > > On Feb 19, 2:26 pm, tbje wrote: > > > Hi, > > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > > found a issue with Comet actor, setHtml and ajaxInvoke. > > > When trying to invoke the following partial update nothing seems to > > happen: > > partialUpdate(SetHtml("field", > onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > >> )) > > > This works as expected however: > > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > Link))) > > > I've created a example app to illustrate the problem if someone is > > interested: > > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > Best regards > > Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Trond, From cursory glance it appears that some old form of archetype (pre Lift 2.0) had been used to generate the project. What command line option did you use in "mvn archetype:generate" to create the project? This is just a request for qualification. Cheers, Indrajit On 19/02/10 8:22 PM, tbje wrote: Thank you for rapid replies and a great framework. I opened ticket #357 for this issue. Best regards Trond On 19 Feb, 15:22, Marius wrote: Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. Br's, Marius On Feb 19, 3:52 pm, tbje wrote: Hi Marius, I discovered the issue while porting a working application from 2.7.7 to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. In the example application I provided it's possible to change the pom.xml by replacing 2.8.0.Beta1 2.0-scala280-SNAPSHOT with 2.7.7 2.0-SNAPSHOT and the application is working as I'd like it to :) I therefor believe it's a lift 2.0-scala280 issue. Best regards Trond On 19 Feb, 14:12, Marius wrote: Can you also try with Scala 2.7.7 ? On Feb 19, 2:26 pm, tbje wrote: Hi, I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and found a issue with Comet actor, setHtml and ajaxInvoke. When trying to invoke the following partial update nothing seems to happen: partialUpdate(SetHtml("field", JsRaw("alert('hi')"))._2} value="Say hi" / )) This works as expected however: partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), Link))) I've created a example app to illustrate the problem if someone is interested: git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git Best regards Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Thank you for rapid replies and a great framework. I opened ticket #357 for this issue. Best regards Trond On 19 Feb, 15:22, Marius wrote: > Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. > > Br's, > Marius > > On Feb 19, 3:52 pm, tbje wrote: > > > > > Hi Marius, > > I discovered the issue while porting a working application from 2.7.7 > > to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > > In the example application I provided it's possible to change the > > pom.xml by replacing > > 2.8.0.Beta1 > > 2.0-scala280-SNAPSHOT > > with > > 2.7.7 > > 2.0-SNAPSHOT > > and the application is working as I'd like it to :) > > > I therefor believe it's a lift 2.0-scala280 issue. > > > Best regards > > Trond > > > On 19 Feb, 14:12, Marius wrote: > > > > Can you also try with Scala 2.7.7 ? > > > > On Feb 19, 2:26 pm, tbje wrote: > > > > > Hi, > > > > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > > > > found a issue with Comet actor, setHtml and ajaxInvoke. > > > > > When trying to invoke the following partial update nothing seems to > > > > happen: > > > > partialUpdate(SetHtml("field", > > > onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > > > > >)) > > > > > This works as expected however: > > > > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > > > Link))) > > > > > I've created a example app to illustrate the problem if someone is > > > > interested: > > > > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > > Best regards > > > > Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Yeah AFAIK Scala 2.8 integration is not 100% done and fully tested. Br's, Marius On Feb 19, 3:52 pm, tbje wrote: > Hi Marius, > I discovered the issue while porting a working application from 2.7.7 > to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > In the example application I provided it's possible to change the > pom.xml by replacing > 2.8.0.Beta1 > 2.0-scala280-SNAPSHOT > with > 2.7.7 > 2.0-SNAPSHOT > and the application is working as I'd like it to :) > > I therefor believe it's a lift 2.0-scala280 issue. > > Best regards > Trond > > On 19 Feb, 14:12, Marius wrote: > > > > > Can you also try with Scala 2.7.7 ? > > > On Feb 19, 2:26 pm, tbje wrote: > > > > Hi, > > > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > > > found a issue with Comet actor, setHtml and ajaxInvoke. > > > > When trying to invoke the following partial update nothing seems to > > > happen: > > > partialUpdate(SetHtml("field", > > onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > > > >)) > > > > This works as expected however: > > > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > > Link))) > > > > I've created a example app to illustrate the problem if someone is > > > interested: > > > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > Best regards > > > Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Re: [Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Please open a ticket at https://liftweb.assembla.com/spaces/liftweb/tickets(you have to be an Assembla registered user and a watcher of the project to create tickets). Please mark it as a defect and assign it to me (Marius or others can steal it at will). Next week is a Lift ticket closing week for me and I'll make it a priority to look at this. On Fri, Feb 19, 2010 at 5:52 AM, tbje wrote: > Hi Marius, > I discovered the issue while porting a working application from 2.7.7 > to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. > > In the example application I provided it's possible to change the > pom.xml by replacing > 2.8.0.Beta1 > 2.0-scala280-SNAPSHOT > with > 2.7.7 > 2.0-SNAPSHOT > and the application is working as I'd like it to :) > > I therefor believe it's a lift 2.0-scala280 issue. > > Best regards > Trond > > On 19 Feb, 14:12, Marius wrote: > > Can you also try with Scala 2.7.7 ? > > > > On Feb 19, 2:26 pm, tbje wrote: > > > > > > > > > Hi, > > > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > > > found a issue with Comet actor, setHtml and ajaxInvoke. > > > > > When trying to invoke the following partial update nothing seems to > > > happen: > > > partialUpdate(SetHtml("field", > > onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > > > > >)) > > > > > This works as expected however: > > > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > > Link))) > > > > > I've created a example app to illustrate the problem if someone is > > > interested: > > > > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > > > Best regards > > > Trond > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Hi Marius, I discovered the issue while porting a working application from 2.7.7 to lift 2.0-scala280-SNAPSHOT and scala 2.8.0.Beta1. In the example application I provided it's possible to change the pom.xml by replacing 2.8.0.Beta1 2.0-scala280-SNAPSHOT with 2.7.7 2.0-SNAPSHOT and the application is working as I'd like it to :) I therefor believe it's a lift 2.0-scala280 issue. Best regards Trond On 19 Feb, 14:12, Marius wrote: > Can you also try with Scala 2.7.7 ? > > On Feb 19, 2:26 pm, tbje wrote: > > > > > Hi, > > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > > found a issue with Comet actor, setHtml and ajaxInvoke. > > > When trying to invoke the following partial update nothing seems to > > happen: > > partialUpdate(SetHtml("field", > onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > > >)) > > > This works as expected however: > > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > > Link))) > > > I've created a example app to illustrate the problem if someone is > > interested: > > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > > Best regards > > Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet issue for Lift-2.0-scala280-SNAPSHOT
Can you also try with Scala 2.7.7 ? On Feb 19, 2:26 pm, tbje wrote: > Hi, > I've been testing out the Lift-2.0-scala280-SNAPSHOT a little bit and > found a issue with Comet actor, setHtml and ajaxInvoke. > > When trying to invoke the following partial update nothing seems to > happen: > partialUpdate(SetHtml("field", onclick={ajaxInvoke(() => JsRaw("alert('hi')"))._2} value="Say hi" / > > >)) > > This works as expected however: > partialUpdate(SetHtml("field", a(() => JsRaw("alert('hi')"), > Link))) > > I've created a example app to illustrate the problem if someone is > interested: > > git://github.com/tbje/Lift-2.0-scala280-SNAPSHOT-issue.git > > Best regards > Trond -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Comet long polls turning to fast short polls
I was able to figure out what the problem was. The main page comet actor had a jquery plugin (gritter - displays growl-like alerts), which makes ajax calls. This plugin was the one which was causing the problem. When I removed call to the jquery function for the plugin, the problem was not seen. Thanks guys for your quick responses. Soumik On Nov 24, 2:05 pm, Timothy Perrett wrote: > Are you using ActorPing or something? Can you post your actor code? > > Cheers, Tim > > On 24 Nov 2009, at 08:50, soumik wrote: > > > Thanks for the quick response, Marius. > > > I am not running the browser with multiple tabs/windows. Its just 1 > > firefox window with 1 tab pane. > > And I see this happening. > > > About the part where I said, navigating away from the page doesn't > > affect the ajax polls, let me clarify a little. > > I have a page where I have 1 comet Actor for just general updates > > (related to my application) and another page with 2 comet actors - the > > general comet actor and a twitter-update comet actor. When I see this > > issue with the twitter page, if I go back to the main page with 1 > > comet actor, the short ajax polls don't seem to cease. Also the comet > > actor id on both the pages(seen on the console performing ajax polls) > > seem to be the same. > > > In the page source i've attached in my previous post, the comet actor, > > 1oz5aj38jk1he, as seen here: > > > > > seems to be the one making those short ajax polls. > > > Also, is there any way by which we can check the destination of the > > ajax requests?? > > > On Nov 24, 12:51 pm, Marius wrote: > >> Are you using multiple tabs with the same page? or even having > >> multiple instances of the same browser having the same page opened in > >> the same time? If so don't, because the Ajax connections are shared > >> between tabs and even different instances of the same browsers. Try > >> using different browsers opening the same page if you want to test it. > > >> After we get the session from SessionMaster we send a BreakOut message > >> which makes the ContinuationActors for this session to Unlisten from > >> CometActor. Consequently the the Comet connection is interrupted by > >> sending a response to the client. This mechanism is intended to avoid > >> Ajax connections starvation from browsers as browsers are quite > >> limited there. > > >> Having multiple Comets in the same page supposed to use a single Ajax > >> connection not more. > > >> What do you mean by : "The fast short polls seem to persist even when > >> I'm navigating away from the page. ". Who would send the comet request > >> once you're not anymore on that page? > > >> Br's, > >> Marius > > >> On Nov 24, 8:42 am, soumik wrote: > > >>> Hi, > >>> I'm trying to build a small Twitter application using scala, using > >>> Twitter4j java library. > > >>> In my application I'm using 2 comet actors, one needed for managing > >>> general updates(non-Twitter) and one for making twitter updates. > >>> Problem is as soon as I log into twitter using my app, I see that the > >>> Comet long polls are changing to very quick short polls, which seem to > >>> be very cpu intensive. The fast short polls seem to persist even when > >>> I'm navigating away from the page. > > >>> Any idea why this behaviour is seen?? > > >>> Here's the html body of the page at runtime: > >>> --- > >>> > > >>> >>> id="F1063843174138UI2" style="display: inline"> > >>> > >>> > >>> > >>> // >>> /* JSON Func TwitterExp $$ F1063843174141L51 */function > >>> F1063843174141L51(obj) {liftAjax.lift_ajaxHandler > >>> ('F1063843174141L51='+ encodeURIComponent(JSON.stringify(obj)), > >>> null,null);} > >>> // ]]> > > >>> > >>> // >>> var destroy_F1063843174138UI2 = function() {} > >>> // ]]> > >>> > > >>> > >>> > > >>> >>> id="F10638431741235UP" style="display: inline"> > > >>> > >>> // >>> /* JSON Func defaultActor $$ F1063843174126YCZ */function > >>> F1063843174126YCZ(obj) {liftAjax.lift_ajaxHandler > >>> ('F1063843174126YCZ='+ encodeURIComponent(JSON.stringify(obj)), > >>> null,null);} > >>> // ]]> > > >>> > >>> // >>> var destroy_F10638431741235UP = function() {} > >>> // ]]> > >>> > > >>> > >>> script> > >>>