Maybe you could put a snppet on the page whose job is to reset the comet? ------------------------------------- Jack Widman<jack.wid...@gmail.com> wrote:
Well my app is a search application. You search for certain web pages and I do some processing after the results are displayed. Thats why I am using Comet. Certain information is added to each result link. I want the user to be able to either hit the back button or click on alink that goes to the search page again. When they enter a search term and click submit, I want to load the CometActor class again. Do you think sending a ShutDown message will accomplish this? After the session is killed, how do I get the CometActor to automatically load again. Do I send the message and then redirect to the page? I am just not comfortable yet with the mechanics of how Lift handles comet. Thanks in advance. Jack On Sun, Oct 4, 2009 at 6:50 PM, Timothy Perrett <timo...@getintheloop.eu>wrote: > > If memory serves, the comet actor lives on in the session scope until > its either sent the ShutDown message explicitly, or it times out (you > can set the timeout). > > Does that help? > > Cheers, Tim > > On 4 Oct 2009, at 23:17, jack wrote: > > > > > I put the line > > > > println("dude") > > > > in a Comet class write under the class declaration. > > > > i.e. > > > > class JoopComet extends CometActor with CometListenee { > > > > println("INSIDE COMET CLASS") > > > > > > When the class runs and all the activity is complete, I hit the back > > button and that loads the JoopComet class again. > > > > But I do not see "dude" printed. > > > > Why not? > > > > > > > > > > -- Jack --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---