[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

[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] 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] 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] 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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] serving images from a directory

2010-02-27 Thread jack
I would like to access an image on the client via a URL. How do I generate that URL. Currently, I'm getting the error The requested page was not defined in your SiteMap, so access was blocked. I understand what this error means for html pages. How does it work for images? Thanks. -- You receiv

[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-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-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] 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: 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] 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: CometActor timeout problem

2009-10-04 Thread jack
Atsuhiko, With the code exactly as you wrote it, how would you modify it to do this? Whenver the Comet Page gets loaded, it resets itself. On Oct 3, 12:47 am, Atsuhiko Yamanaka wrote: > Hi, > > On Sat, Oct 3, 2009 at 1:05 PM, jack wrote: > > > Atsuhiko, > > > The w

[Lift] ShutDown and CometActor

2009-10-04 Thread jack
I am sending a ShutDown message to my CometActor to end the session. WHen I then go back to the CometActor, it is not working properly the way it did the first time. Is there anything I have to do after shutting down the session, or should it just work when I load the CometActor again? --~--~

[Lift] Re: CometActor timeout problem

2009-10-04 Thread jack
Excellent. Thanks. On Oct 5, 12:14 am, Atsuhiko Yamanaka wrote: > Hi, > > On Mon, Oct 5, 2009 at 8:16 AM, jack wrote: > > With the code exactly as you wrote it, how would you modify it to do > > this? > > > Whenver the Comet Page gets loaded, it resets itsel

[Lift] execute code when browser is closed

2009-10-04 Thread jack
I would like to call a function when the browser is closed. How do I do this? --~--~-~--~~~---~--~~ 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

[Lift] maven and jetty

2009-10-05 Thread jack
I have been working locally for a long time and I seem to have forgotten how to deploy and run a war on Jetty! I am ftping the war to my server and putting it in the target directory. I then run mvn jetty:run-war -Djetty.port=80 and I keep getting the default app. What am I doing wrong? --~--~-

[Lift] Help!

2009-10-05 Thread jack
Is mvn jetty:run supposed to creat the war file? I want to upload a war file and just run it, not create another one. How do I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this gro

[Lift] Re: Help!

2009-10-05 Thread jack
never mind. deploy-war, not run-war (been working too hard) On Oct 5, 11:09 pm, Jack Widman wrote: > I meant to say jetty:run-war > > On Mon, Oct 5, 2009 at 10:52 PM, jack wrote: > > > Is mvn jetty:run supposed to creat the war file? I want to upload a > > war file and

[Lift] Re: execute code when browser is closed

2009-10-05 Thread jack
i guess you meant put the snippet right in the CometActor. Ok. Now I'm getting it. On Oct 5, 11:46 pm, Jack Widman wrote: > Sorry if this is a dumb question but in name={searchString}/>, what is searchString? This is in an html file. I am > obviously missing something. > >

[Lift] Re: execute code when browser is closed

2009-10-05 Thread jack
. That is not working, though maybe I am not doing it right. On Oct 6, 12:01 am, Naftoli Gugenheim wrote: > What do you mean? > > - > > jack wrote: > > i guess you meant put the snippet right in the CometActor. Ok. Now I'm > getti

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { { for {blog <- blogs} yield {blog.url} {blog.displayScore} } } def render = { bind("joop" -> createDisplay(blogs)) } --~--~-~--~~~---~--~~ You received this message

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { { for {blog <- blogs} yield {blog.url} {blog.title} } } def render = { bind("joop" -> createDisplay(blogs)) } --~--~-~--~~~---~--~~ You received this message be

[Lift] html not being evalutated

2009-10-20 Thread jack
I have the following method display. source.body has html tags in it but the actual tags are showing instead of being evaluated. e.g. I'm seeing things like 'Hey There' instead of 'Hey There' in bold. This method is in a CometActor and is running when the page is rendered. Am I missing something o

[Lift] Re: html not being evalutated

2009-10-20 Thread jack
OK, I see why this is happening. the {exp} in the NodeSeq convert exp to a String. So I did by creating a string and then converting it to a NodeSeq at the end. Is there a way to do this without using and intermediary string? On Oct 21, 1:03 am, jack wrote: > I have the following method disp

[Lift] Re: html not being evalutated

2009-10-21 Thread jack
Let's say source.body is Search. If I put source.body in a span like this - {source.body} source.body will be converted to text and the actual link tags will be displayed. What is the right way to do this? On Oct 21, 9:06 am, David Pollak wrote: > On Tue, Oct 20, 2009 at 10:16

[Lift] TextileParser

2009-10-24 Thread jack
I am trying to use TextileParser and so I am importing it but I'm getting the error. value textile is not a member of package net.liftweb What am I missing? Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[Lift] 1.1

2009-10-25 Thread jack
I have been using lift 1.0. What is the best way to upgrade to 1.1? --~--~-~--~~~---~--~~ 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

[Lift] global exception page

2009-10-28 Thread jack
I would like to have one error page that appears when any exception occurs. How would I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.

[Lift] regular expression

2009-11-02 Thread jack
I am using the findAllIn function for regular expressions. How do I make it ignore case? I know its simple but I can't find it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send

[Lift] using Dispatch library for Http

2009-11-05 Thread jack
I'm using the Dispatch Databinder library for Http. http://bit.ly/NPWcW My code is this simple method. def testCheckPage(url:String):String = { try { var http = new Http var request = new Request (url) val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/ 5.0")

[Lift] CometActor and render

2009-11-08 Thread jack
I have a CometActor. render is called when it is supposed to be but I don't see the changes. If I refresh the page at anytime, I do see the changes. Any idea what might cause this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[Lift] Re: CometActor and render

2009-11-08 Thread jack
By the way, I know that when render is called, all the variables have the right values. I just don't see it on the screen unless I refresh it. On Nov 8, 3:12 am, jack wrote: > I have a CometActor. render is called when it is supposed to be but I > don't see the changes. If I ref

[Lift] Re: CometActor and render

2009-11-08 Thread jack
One more thing. 'foo's get added to the FooQueue periodically. On Nov 8, 6:47 pm, Jack Widman wrote: > Sorry. Here it is:   As I said, I know that when render is called, > foo.getValue has the right value. But it does not show on the screen, unless > I refresh the b

[Lift] Re: CometActor and render

2009-11-11 Thread jack
ce is. On Nov 11, 11:26 pm, Jack Widman wrote: > David, > > I have attached my code. It runs but does not behave as I intended it to. > The code does a web search on the term "scala" and displays a list of URLs > of the results. Next to each URL it says "Page Length :

[Lift] Re: CometActor and render

2009-11-12 Thread jack
David, I hope its clear from the code what the problem is. If you want me to, I will give a more detailed description of how the code is supposed to work. Jack On Nov 11, 11:26 pm, Jack Widman wrote: > David, > > I have attached my code. It runs but does not behave as I intended it

[Lift] CometListener

2009-11-12 Thread jack
I am trying to use CometListener. According to http://bit.ly/1Wnxt4 , it is in the package net.liftweb._ but compiler says it can't be found. Is this the wrong package? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Lift] Re: CometListener

2009-11-12 Thread jack
I also tried net.liftweb.http On Nov 12, 11:35 pm, jack wrote: > I am trying to use CometListener. According tohttp://bit.ly/1Wnxt4, > it is in the package net.liftweb._ but compiler says it can't be > found. Is this the wrong package? --~--~-~--~~~--

[Lift] scala version

2009-11-12 Thread jack
I'm using lift version 1.1-M6. Which version of scala do I need? In general, how do I know which version of Scala to use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email

[Lift] priority of events

2009-11-13 Thread jack
What is the order that the following three things happen in? 1)localSetup 2)the first time render is called 3)a piece of code in the CometActor that is not inside any method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[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] InputStream to String

2009-11-21 Thread jack
I have seen this problem around and it seems basic but I haven't found a solution. I need to turn an InputStream into a String. There seems to be a bug in the Source class that fails for large files so I don't want to use that (though it is an elegant approach). The following doesn't work because

[Lift] input box in comet actor page resetting.

2009-11-22 Thread jack
I have a comet actor page with an html input box. When ever the comet page gets rerendered, the contents of the input box disappear. What should I do? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegro

[Lift] opening new window from snippet.

2009-11-22 Thread jack
I want to put a link in a snippet that opens up a web page in a new browser window. What is the best way to do this? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this

[Lift] session variable question

2009-11-22 Thread jack
I defined a session variable like this object isAdminVar extends SessionVar[Box[Boolean]](Empty) in a class. I set it to true in that same class upon successful login and then access it in another class but it is coming out false. I am accessing it with isAdminVar.is.openOr(false) Am I missing

[Lift] Re: session variable question

2009-11-23 Thread jack
To give more information, I have two questions. 1) I want to define and set a session variable in Class A and read it in Class B. What is the code? 2) Can A and B be arbitrary classes or do they have to be snippets? On Nov 22, 9:14 pm, jack wrote: > I defined a session variable like t

[Lift] partialUpdate

2009-11-25 Thread jack
I have the following method in a CometActor override def highPriority = { case Tick(page) => { pages = processPages(pages,page) reRender(false) } } where pages is a list of Page objects. How do I make this into a partialUpdate. I looked at the chat example but do not see ho

[Lift] Re: partialUpdate

2009-11-25 Thread jack
Just to clarify: the render function takes the list 'pages' and transforms it into HTML. On Nov 25, 11:25 am, jack wrote: > I have the following method in a CometActor > > override def highPriority = { >     case Tick(page) => { >       pages = processPages(pages,

[Lift] derby

2009-11-25 Thread jack
Could somebody point me to a quickstart or tutorial about how to use Derby with Lift? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+u

[Lift] simple database question

2009-11-26 Thread jack
I have my database configured properly in Boot.scala and in my pom.xml. Suppose I have a table name person with a field called name. What is the simple code to return all rows of this table using Mapper. I want to understand the essence of how lift ties tables to objects with a simple example. --

[Lift] Re: simple database question

2009-11-26 Thread jack
wow. thats impressive. But for this, what does the Person class have to look like? Suppose I have the table but I don't have the Person class written. What does it need to look like? On Nov 26, 1:32 pm, harryh wrote: > val people = Person.findAll() > > On Nov 26, 1:22 pm, jack

[Lift] fsc and Lift

2009-11-27 Thread jack
Does anybody use fsc instead of scalac? I find scalac slow. Are there any known issues with using fsc with Lift? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this grou

[Lift] error locating template/main

2009-12-15 Thread jack
Without changing any code, I just got this error. The template main is where it always was. Any ideas? Error locating template/main. Message::1:6: < expected scala.xml.dtd.ValidationException: :1:6: < expectednet.liftweb.util.PCDataXmlParser.reportSyntaxError (PCDataMarkupParser.scala:169) scala.

[Lift] Re: error locating template/main

2009-12-15 Thread jack
never mind :) On Dec 16, 1:09 am, jack wrote: > Without changing any code, I just got this error. The template main is > where it always was. Any ideas? > > Error locating template/main. > Message::1:6: < expected > > scala.xml.dtd.V

[Lift] load testing a lift application

2009-12-15 Thread jack
I need to load test my site. It uses Comet. I am trying JMeter but I'm not sure if it will work with Comet. The application I am testing is basically a search engine that returns results via Comet. What is a good tool to load and stress test this? -- You received this message because you are subs

[Lift] heapsize

2009-12-17 Thread jack
How do I increase the heapsize in Lift? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options,

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

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: 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] 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] 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: 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] 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
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
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
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
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
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: 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

Re: [Lift] Re: serving images from a directory

2010-02-27 Thread Jack Widman
or example, you just reference tham /img/{image file} ... > these will not be served by Lift but by web container. > > There is no need for SiteMap when serving other resources. > > > > On Feb 27, 10:53 am, jack wrote: > > I would like to access an image on the client

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

  1   2   >