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", JsRaw("alert('hi')"))._2} value="Say hi" /
>))
This works a
> 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
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
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
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.
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
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
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
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
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
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
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
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
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, Cha
On Thu, Feb 4, 2010 at 2:51 PM, Channing Walton wrote:
>
> 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?
>
>
> bearfeeder wrote
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
> wrote:
>
>> Actually I'm seeing th
On Thu, Feb 4, 2010 at 2:31 PM, Channing Walton wrote:
>
>
> bearfeeder wrote:
> >
> > On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton
> > wrote:
> >
> >>
> >> 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 ca
bearfeeder wrote:
>
> On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton
> wrote:
>
>>
>> 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.
>
Actually
On Thu, Feb 4, 2010 at 1:11 PM, Channing Walton wrote:
>
> 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, Feb 4, 2010
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
> 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
On Thu, Feb 4, 2010 at 2:15 AM, 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.
>
>
How are you shutting down your Jetty server?
> Is there something I should have done to enable things to shutdow
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 sh
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
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:
http://old.nabble.com/Comet-making-jetty-take-a-long-time-to
Hi,
I'm trying to build a small Twitter application using scala, using
Twitter4j java library.
In my application I'm using 2 comet actors, one needed for managing
general updates(non-Twitter) and one for making twitter updates.
Problem is as soon as I log into twitter using my app, I see that th
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?
--
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 res
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 regard
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 o
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
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 fr
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 gro
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 ta
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)
[lift
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.
Loading...
In the a
Hey folks,
As you may or may not know, i'm currently working on integrating lift
with objective-j... One of the things i'm keen to integrate is lifts
comet support. The current implementation of CometActor is pretty much
based around javascript and manipulating the DOM. This is great for
the vast
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 net.liftweb.http.Lift
Lifted,
i'm trying a minor variation on DPP's comet screencast and am running into a
weird rendering problem. The component associated with the "comet-managed
state" never renders. The relevant methods are listed below. Any help would
be greatly appreciated.
Best wishes,
--greg
// View
R-E
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 only
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 "S.para
Hi,
I was testing comet and chat demo and after opening 4 or 5 windows
AJAX requests started to end after 500-700ms, rather than 10 seconds.
I know that in most cases this is not an issue (who wants to open 4
chat windows?), but I'm curious what is the problem here. I think
that's it's not jQuery
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 t
43 matches
Mail list logo