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(() =
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
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:
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
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
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
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
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:
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?
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
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
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
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,
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.
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
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:
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?
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,
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?
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
33 matches
Mail list logo