[Lift] a very simple question

2009-10-04 Thread jack
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

[Lift] Re: comet

2009-10-04 Thread jack
... > 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? --~

[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 gro

[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: > > > A

[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 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 li

[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: > H

[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

[Lift] Re: CometActor timeout problem

2009-09-29 Thread Jack Widman
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 >

[Lift] Re: CometActor timeout problem

2009-09-28 Thread Jack Widman
} } 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

[Lift] Re: CometActor timeout problem

2009-09-27 Thread jack
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 >

[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 an

[Lift] CometActor timeout problem

2009-09-17 Thread jack
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

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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. > > ---

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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:

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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

[Lift] Re: trouble with comet Clock example

2009-09-15 Thread Jack Widman
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:

[Lift] trouble with comet Clock example

2009-09-14 Thread jack
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

[Lift] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
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 "-

[Lift] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
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

[Lift] Using Ajax to send text to browser as it is generated.

2009-09-13 Thread jack
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

[Lift] Ajax example from the book

2009-09-13 Thread jack
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(

[Lift] Re: what the difference between :: and :::

2009-09-09 Thread Jack Widman
:: 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. > > > > --~--~-~--~~~---~

[Lift] configuring web application

2009-09-08 Thread jack
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

[Lift] Re: setting user-agent header

2009-09-08 Thread Jack Widman
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

[Lift] Re: setting user-agent header with Databinder

2009-09-08 Thread Jack Widman
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

[Lift] Re: setting user-agent header with Databinder

2009-09-08 Thread Jack Widman
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. >

[Lift] Re: setting user-agent header with Databinder

2009-09-08 Thread Jack Widman
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

[Lift] never mind. I contacted the author of Databinder. But thanks

2009-09-08 Thread jack
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

[Lift] setting user-agent header with Databinder

2009-09-08 Thread jack
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

[Lift] setting user-agent header

2009-09-08 Thread jack
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

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
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

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
= 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

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
;) > > 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

[Lift] putting data in a session

2009-09-06 Thread jack
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

[Lift] stopping an Actor

2009-09-01 Thread Jack Widman
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

[Lift] Re: Question about Lift/Scala & Lift Discussion Board

2009-08-30 Thread jack
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

[Lift] Re: has anyone seen this exception?

2009-08-28 Thread Jack Widman
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?

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread Jack Widman
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

[Lift] Re: has anyone seen this exception?

2009-08-27 Thread Jack Widman
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.

[Lift] has anyone seen this exception?

2009-08-27 Thread jack
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

[Lift] Re: Regarding my question about not showing the password in the querystring.

2009-08-26 Thread Jack Widman
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

[Lift] simple question about a login form

2009-08-26 Thread jack
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? --~--~-

[Lift] Regarding my question about not showing the password in the querystring.

2009-08-26 Thread jack
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

[Lift] Lift on Tomcat

2009-08-25 Thread jack
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

[Lift] embedding lift tag within an html element

2009-08-24 Thread jack
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

[Lift] Re: simple Ajax form

2009-08-24 Thread Jack Widman
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

[Lift] Looking for web hosting company for Lift

2009-08-24 Thread jack
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

[Lift] simple Ajax form

2009-08-23 Thread jack
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

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
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

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
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

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
; 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

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
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? :

[Lift] Lift vs Rails

2009-08-23 Thread jack
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

<    1   2