[Lift] Re: CometActor timeout problem

2009-10-04 Thread jack
Excellent. Thanks. On Oct 5, 12:14 am, Atsuhiko Yamanaka wrote: > Hi, > > On Mon, Oct 5, 2009 at 8:16 AM, jack 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 CometA

[Lift] Re: CometActor timeout problem

2009-10-04 Thread Atsuhiko Yamanaka
Hi, On Mon, Oct 5, 2009 at 8:16 AM, jack 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, --

[Lift] Re: CometActor timeout problem

2009-10-04 Thread jack
Atsuhiko, 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. On Oct 3, 12:47 am, Atsuhiko Yamanaka wrote: > Hi, > > On Sat, Oct 3, 2009 at 1:05 PM, jack wrote: > > > Atsuhiko, > > > The way I have modified the code,

[Lift] Re: CometActor timeout problem

2009-10-03 Thread jack
Yes, I will send you this. In the mean time, could you at least tell me how to reset the code. I.E. I would like that everytime you refresh the page, it starts again. On Oct 3, 12:47 am, Atsuhiko Yamanaka wrote: > Hi, > > On Sat, Oct 3, 2009 at 1:05 PM, jack wrote: > > > Atsuhiko, > > > The way

[Lift] Re: CometActor timeout problem

2009-10-02 Thread Atsuhiko Yamanaka
Hi, On Sat, Oct 3, 2009 at 1:05 PM, jack wrote: > > Atsuhiko, > > The way I have modified the code, each thread is returning its Package > object at different times. But its seems the screen updates only when > they all have completed. Could you tell me what piece of the code > makes the screen

[Lift] Re: CometActor timeout problem

2009-10-02 Thread jack
Atsuhiko, The way I have modified the code, each thread is returning its Package object at different times. But its seems the screen updates only when they all have completed. Could you tell me what piece of the code makes the screen update? Thanks. Jack On Oct 1, 11:19 am, David Pollak wrote:

[Lift] Re: CometActor timeout problem

2009-10-01 Thread David Pollak
Thanks! On Thu, Oct 1, 2009 at 1:11 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > Hi, > > On Thu, Oct 1, 2009 at 1:11 PM, Jack Widman wrote: > > David, > > I have attached a (non) working example. It compiles and runs and does a > > part of what I want it to do but not completely

[Lift] Re: CometActor timeout problem

2009-10-01 Thread Jack Widman
Thanks so much Atsuhiko. You are very kind. On Thu, Oct 1, 2009 at 11:01 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > Hi, > > On Thu, Oct 1, 2009 at 9:42 PM, Jack Widman wrote: > > Atsuhiko, > > How would I make one small change? I would like each link to refresh only > > once a

[Lift] Re: CometActor timeout problem

2009-10-01 Thread Jack Widman
Atsuhiko, How would I make one small change? I would like each link to refresh only once and I would like that to happen as soon as the TSCatcher objects catch a package. Thanks in advance. Jack On Thu, Oct 1, 2009 at 4:11 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > Hi, > > On

[Lift] Re: CometActor timeout problem

2009-10-01 Thread Jack Widman
Thanks Atsuhiko very much. I really appreciate your effort and this helps alot. Jack On Thu, Oct 1, 2009 at 4:11 AM, Atsuhiko Yamanaka < atsuhiko.yaman...@gmail.com> wrote: > Hi, > > On Thu, Oct 1, 2009 at 1:11 PM, Jack Widman wrote: > > David, > > I have attached a (non) working example. It com

[Lift] Re: CometActor timeout problem

2009-09-29 Thread David Pollak
On Tue, Sep 29, 2009 at 8:00 AM, Jack Widman wrote: > Thanks. I will adapt these changes and if its still not working I will post > the code so you can run it. Also, I admit, I have a ways to go in the art of > functional programming. Rule #1 - don't use anything mutable unless you have a good

[Lift] Re: CometActor timeout problem

2009-09-29 Thread Jack Widman
Thanks. I will adapt these changes and if its still not working I will post the code so you can run it. Also, I admit, I have a ways to go in the art of functional programming. On Tue, Sep 29, 2009 at 12:50 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Mon, Sep 28, 2009 at 7:2

[Lift] Re: CometActor timeout problem

2009-09-28 Thread David Pollak
On Mon, Sep 28, 2009 at 7:29 PM, Jack Widman wrote: > Thanks David so much for this example. It is very cool to accomplish this > in such a small amount of code! I am trying to adapt my code to work like > this and it would help me if you could look at this (short) piece of code > and tell me wha

[Lift] Re: CometActor timeout problem

2009-09-28 Thread Jack Widman
Thanks David so much for this example. It is very cool to accomplish this in such a small amount of code! I am trying to adapt my code to work like this and it would help me if you could look at this (short) piece of code and tell me whats wrong with it. This code is supposed to display a list of p

[Lift] Re: CometActor timeout problem

2009-09-28 Thread David Pollak
Jack, Here's a working example. Here's the source for the CometActor: package com.liftcode.comet import net.liftweb._ import http._ import util._ class Background extends CometActor { private val values = new Array[Box[Int]](100) // render the information def render = {

[Lift] Re: CometActor timeout problem

2009-09-27 Thread jack
I am still having this problem so I will post a simple example. Say I want to display a list of the numbers 1 to 100. And suppose I have an object Foo and a method bar, which takes an integer and returns an integer. And bar takes about 10 seconds to return. So I want to display the numbers, run Fo

[Lift] Re: CometActor timeout problem

2009-09-18 Thread Jack Widman
Yes, the page never gets rendered. I am actually using Actors. I will post a code example tonight. Thanks for your response. On Fri, Sep 18, 2009 at 12:09 PM, marius d. wrote: > > > > On Sep 17, 11:09 pm, jack wrote: > > I have a CometActor which displays a list of urls and at the same time > >

[Lift] Re: CometActor timeout problem

2009-09-18 Thread marius d.
On Sep 17, 11:09 pm, jack wrote: > I have a CometActor which displays a list of urls and at the same time > launches a bunch of threads each of which gets information about the > urls and then puts messages about that information in a Queue. On each > new tick, the CometActor checks the queue a