I put the line
println("dude")
in a Comet class write under the class declaration.
i.e.
class JoopComet extends CometActor with CometListenee {
println("INSIDE COMET CLASS")
When the class runs and all the activity is complete, I hit the back
button and that loads the JoopComet class again
...
> of course unless something escapes me :)
>
> Br's,
> Marius
>
> On Oct 4, 6:12 pm, jack wrote:
>
>
>
> > 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?
--~
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
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:
>
> > A
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
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 li
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:
> H
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
p 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
>
}
}
case object Tick
I hope this is not to much to ask...
On Mon, Sep 28, 2009 at 12:36 PM, David Pollak <
feeder.of.the.be...@gmail.com> wrote:
> Jack,
> Here's a working example.
>
> Here's the source for the CometActor:
>
>
> package com.liftcode.come
code to suggest how
to do it?
On Sep 18, 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
> > launches a bunch of threads each of which gets information about the
>
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 an
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 and updates its urls.
The problem is that I
Ok Great. I will try this first thing when I get home tonight.
On Tue, Sep 15, 2009 at 11:05 AM, David Pollak <
feeder.of.the.be...@gmail.com> wrote:
>
>
> On Tue, Sep 15, 2009 at 7:18 AM, Jack Widman wrote:
>
>> I did not try it without the package statement. The cl
ve had times that I tracked down
> errors to an incorrect package statement. In Java, if a package statement
> doesn't correspond to a file's containing folder it's an error, but in Scala
> it just compiles into a different package/output folder.
>
> ---
s file
> outputted?
> I think the browser is complaining that the error message xml has an
> unbound prefix.
>
>
> -
> Jack Widman wrote:
>
> And here is the error again:
> Error!
> XML parsing failed
>
> XML parsing failed: synt
Yikes. Feeling stupid.
On Tue, Sep 15, 2009 at 9:02 AM, Tim Nelson wrote:
> Comet classes are supposed to go in the comet folder. It looks like you
> have it in your snippet folder. Did you try putting the clock class in the
> comet folder?
>
>
> On Tue, Sep 15, 2009 at 7:
And here is the error again:
Error!
XML parsing failed
XML parsing failed: syntax error (Line: 13, Character: 4)
Reparse document as HTML
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:
11:
12:
13: Missi
artialUpdate(SetHtml("time",
Text(timeNow.toString)))
ActorPing.schedule(this,Tick, 1L)
}
}
}
case object Tick
*markup - (I have also tried it with just *type="Clock" since the package is
in my Boot class)
Missing Clock
On Tue, Sep 15, 2009 at
The package is correct. Here is the error
XML parsing failed: syntax error (Line: 13, Character: 4)
Reparse document as HTML
Error:undeclared XML namespace prefix used in attribute name
Specification:http://www.w3.org/TR/xml-names11/#nsc-NSDeclared
10:
11:
12:
13: Missing Clock
14:
I compiled the comet Clock app and used the following markup
Missing Clock
I also used the standard default.html
When I ran it, I got the error
XML parsing failed: syntax error (Line: 13, Character: 4)
Error:undeclared XML namespace prefix used in attribute name
Specification:http
myFunc.
>
>
>Hello World
>
> Some Text
>
>
>
>
>
> 2. "hello" is a prefix for referring to template elements by name. The
> HTML Lift template should have some like which will
> get replaced by the evaluation after "-
quot;hello" is a prefix for referring to template elements by name. The
>> HTML Lift template should have some like which will
>> get replaced by the evaluation after "->" within bind().
>>
>> 3. I'm not sure what you mean &qu
I have some code that generates a list of urls but it takes awhile to
generate all of them. I would like to send them to the browser as they
are generated. How do I use Ajax to accomplish this.
I can put the urls in a List as they are generated if that works. But
how do I hook up the List to the
Could somebody please explain to me how this example from the book
works.
def myFunc(html:NodeSeq):NodeSeq = {
bind("hello",html,"button" ->
ajaxButton(Text("Press me"),
{ () =>
println("Got an Ajax call.")
SetHtml(
:: is cons. It adds an element to a list. ::: concatentates two lists.
On Wed, Sep 9, 2009 at 11:15 PM, surfman wrote:
>
> I am confused by :: and :::,it seems they are doing concatenation job.
> but what they differ from each other? Thanks.
>
> >
>
--~--~-~--~~~---~
Simple, but appropriate, I think, question.
I am using jetty on port 8080. How do configure my server so that when
people just type in my domain name, they get the index.html of my
application. Its been a few years since I did this.
--~--~-~--~~~---~--~~
You rece
Cool. Thanks. The useful things about Lift seem to never end.
On Tue, Sep 8, 2009 at 6:51 PM, Derek Chen-Becker wrote:
> S.setHeader can be used in Lift to set a response header.
>
> Derek
>
>
> On Tue, Sep 8, 2009 at 9:02 AM, jack wrote:
>
>>
>> Has anyone
ke
val req_with_agent = req <:< Map("User-Agent" -> "my user agent value")
On Tue, Sep 8, 2009 at 5:17 PM, Randinn wrote:
>
> What was the answer now that you have attained it?
>
> On Sep 9, 3:02 am, Jack Widman wrote:
> > You are right. I will fin
Right. I will try to keep to the topic :)
I actually found him and he quickly answered me.
On Tue, Sep 8, 2009 at 12:24 PM, David Pollak wrote:
> Jack,
> I'm not sure where N8han (the author of Databinder) hangs out, but it's not
> on the Lift list. :-(
>
> Sorry.
>
gt;
> Cheers, Tim
>
>
> On 8 Sep 2009, at 17:26, Jack Widman wrote:
>
> > Right. I will try to keep to the topic :)
> >
> > I actually found him and he quickly answered me.
> >
> > On Tue, Sep 8, 2009 at 12:24 PM, David Pollak <
> feeder.of.the.be...@gm
setting user-agent header. My question is answered
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email
Please forgive me for including so much code but I have an important
demo fast approaching and I'm kind of in a bind. I am using
Databinders Dispatch http library which is a wrapper around Javas
HttpClient library. I have included the Http class below. Does anyone
see how to set the user-agent hea
Has anyone used dispatch from databinder.net? Its an http library in
Scala.
I do not know how to set the User-Agent header.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send em
I'm sorry. You probably meant 'None'
On Sun, Sep 6, 2009 at 5:05 PM, Jack Widman wrote:
> I'm sorry for such an elementary question, but what is Empty here?
>
> On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhuri > wrote:
>
>>
>> obje
= FooVar.is.openOr("Not found")
>
> Cheers, Indrajit
>
> On Sep 7, 12:36 am, jack wrote:
> > How do I put something in the session from one page and take it out
> > from another page?
> >
>
--~--~-~--~~~---~--~~
You received th
;)
>
> Cheers, Indrajit
>
> On Sep 7, 12:36 am, jack wrote:
> > How do I put something in the session from one page and take it out
> > from another page?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscri
How do I put something in the session from one page and take it out
from another page?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To un
How does an Actor stop itself from running. That is to say, stop its act
method as soon as possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to liftweb@googlegro
I agree. I can't imagine starting something like this without first
approaching David.
Having said that, and pehaps contradictorily, I welcome any
initiatives that will further Lift/Scala.
On Aug 30, 9:20 am, Naftoli Gugenheim wrote:
> Once again, I don't see how you can discuss it until you kn
t;
> -Ross
>
> On Aug 27, 2009, at 7:28 PM, Jack Widman wrote:
>
> Here is the code I am using. The exception is happening at line 12, the
> line that goes line =
> br.readLine()
> The exception is happening alot. Any ideas?
ream), "UTF-8")
>
> See if that makes things better.
>
>
> On Thu, Aug 27, 2009 at 4:28 PM, Jack Widman wrote:
>
>> Here is the code I am using. The exception is happening at line 12, the
>> line that goes
rom time to time
> and they indicate to me that the Internet is a random place.
>
> On Thu, Aug 27, 2009 at 12:06 PM, jack wrote:
>
>>
>> Has anyone seen this error? I get it while transforming a Stream into
>> a String. The stream is from an http request I just made.
Has anyone seen this error? I get it while transforming a Stream into
a String. The stream is from an http request I just made.
Message: java.io.IOException: Premature EOF
sun.net.www.http.ChunkedInputStream.readAheadBlocking
(ChunkedInputStream.java:556)
sun.net.www.http.ChunkedI
Thanks Jeppe. I wasn't realizing that since it has to be done on the server,
there's a chicken and egg problem with respect to getting it there
encrypted. I just wasn't thinking.
I will use a post.
On Wed, Aug 26, 2009 at 6:45 AM, Jeppe Nejsum Madsen wrote:
>
> jack writ
I have a template with username and password fields. I want to submit
to another page where I will, among other things, encrypt the
password. But I don't want to show the password in the querystring
before I encrypt it.
Where do I encrypt it before lift puts it into the querystring?
--~--~-
Of course I could use a POST instead of a GET but my question was
really about how to process a form value in a snippet, before the form
is submitted. This way I can encrypt the password before it is sent in
the body of the post, over the wire.
I don't mean to suggest this is anything non-trivial
I want to set up Lift with Tomcat. I set up lift on my local machine
using Maven. Where are the Lift jars located? Are there any non-
standard steps for setting up Lift on Tomcat? I am familiar with
Tomcat.
Thanks.
--~--~-~--~~~---~--~~
You received this message b
I apologize for such a simple question.
How do I embed a lift tag within quotes in a html element?
For example
Where I determine the image dynamically in a snippet.
I can't do this, right?
--~--~-~--~~~---~--~~
You received this message because you are subs
Excellent. Thanks David.
On Mon, Aug 24, 2009 at 8:08 PM, David Pollak wrote:
>
>
> On Sun, Aug 23, 2009 at 10:40 PM, jack wrote:
>
>>
>> I am trying to make a simple ajax form. The code is below. The
>> Javascript error I am getting when I hit the send butto
I am looking for a web hosting company for my Lift project. I figure
anyone who does Java would work. Is this true? Can anyone recommend a
company?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To pos
I am trying to make a simple ajax form. The code is below. The
Javascript error I am getting when I hit the send button is:
uncaught exception ReferenceError: F777221462447MPT is not defined
Am I missing something?
Hello FormAjax
Hello
Who :
create src
useful
for us is very valuable.
On Sun, Aug 23, 2009 at 1:33 PM, Meredith Gregory
wrote:
> Jack,
>
> For my money Rails is somewhat more mature than lift, but lift is on a
> trajectory to overtake Rails feature-wise and is certainly already there
> performance-wise. The real issue, to
verge of
getting funding.
On Sun, Aug 23, 2009 at 1:18 PM, David Pollak wrote:
> Jack,
> I started doing Rails in 2004. At the time, there was one Rails book and a
> few Ruby books. There had been a few RubyConf conferences and SD Forum had
> the first Ruby & Rails confere
; performance of Scala & Lift makes it a no brainer. Enumerating all the
> pros of Scala and Lift would just take way to long.
>
>
> The list of Scala books and the Lift book are enlisted here
> http://www.scala-lang.org/node/959
>
> Br's,
> Marius
>
> On Aug 23
Thanks Derek for the quick and helpful response. I am going to go with
Lift.
On Sun, Aug 23, 2009 at 12:49 PM, Derek Williams wrote:
> On Sun, Aug 23, 2009 at 8:45 AM, jack wrote:
>
>> I really do want to use Lift instead of Rails. Could somebody please
>> convince me? :
I am doing a startup company that involves both a lot of processing on
the backend (in the code) and a decent amount of comet/ajax in the
frontend.It is very important that the code quickly on the server. I
have seen the light with respect to Scala and Lift looks terrific. My
only concern is how
101 - 157 of 157 matches
Mail list logo