Hi,

On Mon, Oct 5, 2009 at 8:16 AM, jack <jack.wid...@gmail.com> wrote:
> With the code exactly as you wrote it, how would you modify it to do
> this?
>
> Whenver the Comet Page gets loaded, it resets itself.

How about wrapping your CometActor page with the snippet?

Please refer to attached diff file.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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
-~----------~----~----~----~------~----~------~--~---

diff -Naur src/main/scala/com/authoritude/snippet/JoopCometWrapper.scala 
src.new/main/scala/com/authoritude/snippet/JoopCometWrapper.scala
--- src/main/scala/com/authoritude/snippet/JoopCometWrapper.scala       
1970-01-01 00:00:00.000000000 +0000
+++ src.new/main/scala/com/authoritude/snippet/JoopCometWrapper.scala   
2009-10-05 04:06:00.000000000 +0000
@@ -0,0 +1,12 @@
+package com.authoritude.snippet
+
+import _root_.scala.xml.NodeSeq
+
+class JoopCometWrapper {
+  def render(node:NodeSeq) = {
+    TSGetterLauncher.tick
+    node
+  }
+}
+  
+  
diff -Naur src/main/webapp/test.html src.new/main/webapp/test.html
--- src/main/webapp/test.html   2009-09-29 21:09:18.000000000 +0000
+++ src.new/main/webapp/test.html       2009-10-05 04:01:42.000000000 +0000
@@ -1,7 +1,9 @@
 
 <lift:surround with="default" at="content">
- <lift:comet type="JoopComet" name="Other">
-    <auth:joop></auth:joop>
-  </lift:comet>
+ <lift:JoopCometWrapper>
+   <lift:comet type="JoopComet" name="Other">
+      <auth:joop></auth:joop>
+   </lift:comet>
+ </lift:JoopCometWrapper>
 </lift:surround>
 

Reply via email to