[Lift] Comet issue for Lift-2.0-scala280-SNAPSHOT

2010-02-19 Thread tbje
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, input type=button onclick={ajaxInvoke(() =

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 timespan

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 a...@warski.org 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:

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

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

Re: [Lift] Comet shutdown?

2010-02-09 Thread David Pollak
On Tue, Feb 9, 2010 at 3:28 AM, Adam Warski a...@warski.org 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

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-05 Thread Channing Walton
Just a bit more on this: I've noticed that if all users have logged out then jetty shuts down quickly... Channing Walton wrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is there something I should have done to

[Lift] [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is there something I should have done to enable things to shutdown quicker? Channing -- View this message in context:

Re: [Lift] [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Timothy Perrett
Are you seeing a stack trace? Cheers, Tim On 4 Feb 2010, at 10:15, Channing Walton wrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is there something I should have done to enable things to shutdown quicker?

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
No, it eventually quits peacefully. Timothy Perrett wrote: Are you seeing a stack trace? Cheers, Tim On 4 Feb 2010, at 10:15, Channing Walton wrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. Is

Re: [Lift] [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 2:15 AM, Channing Walton channingwal...@mac.comwrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for jetty to shut down. How are you shutting down your Jetty server? Is there something I should have done to enable

[Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. bearfeeder wrote: On Thu, Feb 4, 2010 at 2:15 AM, Channing Walton channingwal...@mac.comwrote: Hi, I've added some comet-fu in my lift app but I've found that it now takes a minute or so for

Re: [Lift] Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton channingwal...@mac.comwrote: ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. I'm pretty sure Lift cancels the Comet connections during the Servlet unload process. bearfeeder wrote: On Thu,

[Lift] Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
bearfeeder wrote: On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton channingwal...@mac.comwrote: ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. I'm pretty sure Lift cancels the Comet connections during the Servlet unload process.

Re: [Lift] Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 2:31 PM, Channing Walton channingwal...@mac.comwrote: bearfeeder wrote: On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton channingwal...@mac.comwrote: ah, thats a good question. I am using sbt and its jetty-stop. I'll find out what its doing. I'm

[Lift] Re: Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
Thanks for the advice, I'll definitely rethink the pattern. I'm actually seeing the problem when I use RunWebApp. When I press a key RunWebApp should shut down but it just hangs for me. bearfeeder wrote: On Thu, Feb 4, 2010 at 2:31 PM, Channing Walton channingwal...@mac.comwrote:

Re: [Lift] Re: Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread David Pollak
On Thu, Feb 4, 2010 at 2:51 PM, Channing Walton channingwal...@mac.comwrote: Thanks for the advice, I'll definitely rethink the pattern. I'm actually seeing the problem when I use RunWebApp. When I press a key RunWebApp should shut down but it just hangs for me. What is RunWebApp?

[Lift] Re: Re: Re: Re: [lift] Comet making jetty take a long time to shutdown

2010-02-04 Thread Channing Walton
RunWebApp was produced in test/scala when I created the lift project using the basic archetype. http://github.com/mrxtravis/liftweb/blob/master/lift-archetype-basic/src/main/resources/archetype-resources/src/test/scala/RunWebApp.scala bearfeeder wrote: On Thu, Feb 4, 2010 at 2:51 PM,

[Lift] Comet Actor

2009-11-13 Thread jack
I have a some code in a CometActor that I want to run right after render is called for the first time. What is the best way to do this? I could set a boolean variable in the render method and then send a message back to the CometActor to tell it to run the code. I suspect there is a better way?

[Lift] Re: Concurrency control of database access in Lift/Comet

2009-10-05 Thread donfranciscodequevedo
Thanks Kevin, I know, that this is more of a theoretical problem, but now that I have read so much about Actors and concurrent programming, I am actually curious about the underlying concurrency strategies taken by Scala. Infact I realize, that this is actually more a Scala question, than a Lift

[Lift] Re: Concurrency control of database access in Lift/Comet

2009-10-05 Thread Kevin Wright
Its really more of a Java problem, or JDBC to be specific. The normal way to configure this would be to establish a pool of connections, when a thread, or actor, needs to interact with the database it takes a connection from the pool, uses it, then returns it to the pool. This is the same

[Lift] Re: Concurrency control of database access in Lift/Comet

2009-10-05 Thread David Pollak
Howdy, I think you misunderstand how Actors work. An Actor only consumes resources while it is processing an item in its mailbox. So if an Actor is hanging out, doing nothing, it will only consume memory (like any other object.) When the Actor receives a message, it allocates some additional

[Lift] comet

2009-10-04 Thread jack
How can assure that every time a comet page is loaded, it starts again fresh? I.e. as if the page were being loaded for the first time? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Concurrency control of database access in Lift/Comet

2009-10-04 Thread donfranciscodequevedo
I have read that the Lift framework supports the CometActor model. As far as I understand this is achieved by creating many threads out of some thread pool, each of which handles one or more client socket connection to a client. My question is, what kind of approach Lift takes to handle access

[Lift] Re: Concurrency control of database access in Lift/Comet

2009-10-04 Thread Kevin Wright
In my experience, the database engine itself does a pretty good job of managing concurrent connections like this out of the box, which is much of the reason why connection pooling is so effective. Of course, thinks can be a bit interesting on the database side if you want to get really obsessive

[Lift] Comet Actors - single browser, multiple tabs, same URL - out of control GET problem

2009-09-16 Thread Dano
We have a lift app (innovationgames.com) which has a page (actually several) with comet actors. When we go to the same URL in two tabs in the same browser, we see that the long polls (GET requests) return immediately in rapid fire succession and this behavior continues until we exit one of the

[Lift] Comet Chat

2009-08-24 Thread Bjarte Stien Karlsen
Hello lifted, I am playing around with the 50ish line based comet example that dpp has talked about in several talks and that is written more about here: http://m.3wa.com/?p=304 Today I showed this to a friend and it looks like the focus of the input box is lost when an update is received. Does

[Lift] Comet logger initialized too early?

2009-08-13 Thread Jeppe Nejsum Madsen
Hi, In trying to move to slf4j/logback I encountered an error when I removed log4j from the cp: 09:53:50.297 [main] ERROR org.mortbay.log - failed LiftFilter java.lang.NoClassDefFoundError: org/apache/log4j/LogManager at net.liftweb.util.LogBoot$.log4jIsConfigured$1(Log.scala:113)

[Lift] Comet render and jQuery

2009-08-05 Thread Avo Reid
I am might be going about this in the wrong way but I wanted to get confirmation. I have a comet lift snippet that waits for a comet actor to send down search results triggered by a button click after entering keywords. lift:comet type=SearchActor

[Lift] Comet request exception

2009-06-03 Thread feelgood
I just copied comet sample named Clock from the p. 142 of the liftbook into my app. It doesn't work. First time it renders timestamp normally, but since 10 seconds: WARN - Request for /comet_request/58946720417/1ha35q9iqp4el failed Bail java.lang.Exception: Bail at

[Lift] Comet - Unique to each page

2009-04-22 Thread bradford
I noticed in the chat demo that if you enter your name or chat into one tab, the same results will propagate to the other tab. I need a short lived comet session that's unique to each tab -- I want to prevent one tab from mixing its data with another tab. I understand that most user browser

[Lift] Comet question

2008-11-12 Thread Francois Bertrand
Hi: How can I pass initialization parameter to a Comet Actor? Using the chat demo as a use case, consider if I want; - let the user choose a chat room, - the list of chat room is only known at runtime (I can't pass the room's id in the xhtml template) Is it as simple as calling

[Lift] Comet and Flot

2008-09-20 Thread Bryan
I am interested in adding some (almost) real-time charts to a project of mine. I have a couple of questions, though. 1) Is there documentation on lift's server and client implementation of comet available online? 2) Are there any reasons why dojo's comet client wasn't considered? 3) I see that