Re: [Lift] Comet shutdown?

2010-02-10 Thread Adam Warski
> As mentioned earlier, please try *lifespan* instead. > > def lifespan: Box[TimeSpan] is what you probably want. Ah :D I thought you were correcting the type parameter in David's email, didn't notice the function name. Thanks a lot! :) -- Adam Warski http://www.warski.org http://www.software

Re: [Lift] Comet shutdown?

2010-02-10 Thread David Pollak
On Wed, Feb 10, 2010 at 9:36 AM, Indrajit Raychaudhuri wrote: > Adam, > > As mentioned earlier, please try *lifespan* instead. > > def lifespan: Box[TimeSpan] is what you probably want. > Thanks for correcting me on this. I must have had a brain mis-fire when I typed the method name. > > - Ind

Re: [Lift] Comet shutdown?

2010-02-10 Thread Indrajit Raychaudhuri
Adam, As mentioned earlier, please try *lifespan* instead. def lifespan: Box[TimeSpan] is what you probably want. - Indrajit On 10/02/10 10:58 PM, Adam Warski wrote: Hello, to be extra sure I pulled the latest sources from git and recompiled. And I still get an error: error: method timespan

Re: [Lift] Comet shutdown?

2010-02-10 Thread Adam Warski
Hello, to be extra sure I pulled the latest sources from git and recompiled. And I still get an error: error: method timespan overrides nothing override def timespan: Box[TimeSpan] = Full(0 seconds) > Yep, override def timespan: Int does if fact override nothing... please look > at my mail.

Re: [Lift] Comet shutdown?

2010-02-10 Thread Indrajit Raychaudhuri
On 10/02/10 9:49 PM, David Pollak wrote: On Wed, Feb 10, 2010 at 8:13 AM, Adam Warski mailto:a...@warski.org>> wrote: Hello, > Yes, in fact there is a timespan method in CometActor. You should be using Lift 2.0-M1 or 2.0-SNAPSHOT. I'm using 2.0-SNAPSHOT: class Test e

Re: [Lift] Comet shutdown?

2010-02-10 Thread David Pollak
On Wed, Feb 10, 2010 at 8:13 AM, Adam Warski wrote: > Hello, > > > Yes, in fact there is a timespan method in CometActor. You should be > using Lift 2.0-M1 or 2.0-SNAPSHOT. > > I'm using 2.0-SNAPSHOT: > > class Test extends CometActor { > def render = NodeSeq.Empty > override def timespan = 0

Re: [Lift] Comet shutdown?

2010-02-10 Thread Adam Warski
Hello, > Yes, in fact there is a timespan method in CometActor. You should be using > Lift 2.0-M1 or 2.0-SNAPSHOT. I'm using 2.0-SNAPSHOT: class Test extends CometActor { def render = NodeSeq.Empty override def timespan = 0 } error: method timespan overrides nothing override def timespa

Re: [Lift] Comet shutdown?

2010-02-10 Thread David Pollak
On Tue, Feb 9, 2010 at 11:40 PM, Adam Warski wrote: > Hello, > > > A CometActor has a lifespan of the session, not a particular page. The > same component may be visible on many different pages. The same component > may receive messages from external source, even when the component is not > bei

Re: [Lift] Comet shutdown?

2010-02-09 Thread Adam Warski
Hello, > A CometActor has a lifespan of the session, not a particular page. The same > component may be visible on many different pages. The same component may > receive messages from external source, even when the component is not being > displayed. The CometActor is a much more pure (in th

Re: [Lift] Comet shutdown?

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 3:28 AM, Adam Warski wrote: > Hello, > > I'm playing with comet support in lift, following the example from the > book, and it works fine except for shutting down. > I close the browser window where the page with the comet client was open > and I would expect that at some p

[Lift] Comet shutdown?

2010-02-09 Thread Adam Warski
Hello, I'm playing with comet support in lift, following the example from the book, and it works fine except for shutting down. I close the browser window where the page with the comet client was open and I would expect that at some point shortly after that the localShutdown method should be ca