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

2010-02-27 Thread Jack Widman
Thanks Marius. On Sat, Feb 27, 2010 at 4:07 AM, Marius wrote: > If you want Lift to serve images you should put them in /resources/ > toserve folder and reference them as /classpath/{image file} > > If you want to put images say in /img folder at the same level with / > WEB-INF for example, you

Re: [Lift] Re: simple database question

2009-11-26 Thread Jack Widman
t; Mapper. > > > > I want to understand the essence of how lift ties tables to objects > > > > with a simple example. > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group,

Re: [Lift] Re: session variable question

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

Re: [Lift] Re: InputStream to String

2009-11-21 Thread Jack Widman
ed why "readWholeInputStream" was somehow not the obvious > choice ;-) > > Cheers, Tim > > On Nov 21, 4:37 pm, Jack Widman wrote: > > I kind of like it. Says exactly what it does :) > > > > On Sat, Nov 21, 2009 at 9:56 AM, David Pollak < > feeder

Re: [Lift] InputStream to String

2009-11-21 Thread Jack Widman
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, visit this group at > http://gro

Re: [Lift] Re: Menu generated from database?

2009-11-19 Thread Jack Widman
ail to >> liftweb+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/liftweb?hl=. >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Beginning Scala http://www.apress.

Re: [Lift] Re: Call it Lift 2.0

2009-11-17 Thread Jack Widman
web+unsubscr...@googlegroups.com > > > > > . > > For more options, visit this group at > > http://groups.google.com/group/liftweb?hl=. > > > > > > -- > > > > You received this message because you are subscribed to the Google Groups > >

Re: [Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Jack Widman
uot;] >> > > > // Do something with the cookie >> > >> > > > or ASP.NET: >> > > > var c = Request.Cookies["CookieName"] >> > > > if(c != null) { >> > > > var v = c.Value >> > > > // Do somet

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
not sure what would happen exactly if you have mixed versions of the > lift modules, but It Can't Be Good. > > Hope that helps, > -Ross > > On Nov 13, 2009, at 10:17 PM, Jack Widman wrote: > > Here is my pom.xml > > On Fri, Nov 13, 2009 at 12:09 PM, Jack

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
Here is my pom.xml On Fri, Nov 13, 2009 at 12:09 PM, Jack Widman wrote: > sure. Thanks Ross. I will send it tonight. Also what is the difference > between the CometListener and the CometListenee? > > > On Fri, Nov 13, 2009 at 11:14 AM, Ross Mellgren wrote: > >> Could yo

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
not correct. > > -Ross > > > On Nov 13, 2009, at 12:09 AM, Jack Widman wrote: > > David, > > I'm using lift 1.1 and scala 2.5 now and the compiler says it cant find > CometListener when I import net.liftweb.http._ > > Jack > > On Fri, Nov 13, 2009 at 12:01

[Lift] Re: CometListener

2009-11-12 Thread Jack Widman
David, I'm using lift 1.1 and scala 2.5 now and the compiler says it cant find CometListener when I import net.liftweb.http._ Jack On Fri, Nov 13, 2009 at 12:01 AM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Thu, Nov 12, 2009 at 8:54 PM, Jack Widman

[Lift] Re: CometListener

2009-11-12 Thread Jack Widman
it.ly/1Wnxt4, > >> it is in the package net.liftweb._ but compiler says it can't be > >> found. Is this the wrong package? > > > > > > > > -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 --~--~-~--~~~---~--~-

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
got it. I was mixing metaphors. On Thu, Nov 12, 2009 at 5:41 PM, David Pollak wrote: > > > On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman wrote: > >> Is it that I am putting things on a Queue from within an the Calculator >> Actor and having the CometActor retrieve them

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Thanks. On Thu, Nov 12, 2009 at 5:32 PM, David Pollak wrote: > > > On Thu, Nov 12, 2009 at 2:16 PM, Jack Widman wrote: > >> Will do. One more small question How do I send a message to the Comet >> Actor from another class? Can the CometActor be an object instead of

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Ephaller/doc/ScalaActors.pdf> > > Please also look at the Actor chapters in Beginning Scala or Programming in > Scala. > > Thanks, > > David > > > On Wed, Nov 11, 2009 at 8:26 PM, Jack Widman wrote: > >> David, >> >> I have attached my code. It

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
.pdf> > > Please also look at the Actor chapters in Beginning Scala or Programming in > Scala. > > Thanks, > > David > > > On Wed, Nov 11, 2009 at 8:26 PM, Jack Widman wrote: > >> David, >> >> I have attached my code. It runs but does not behav

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
> I'll look at the actual code and report more in a little while. > > Thanks, > > David > > > On Wed, Nov 11, 2009 at 8:26 PM, Jack Widman wrote: > >> David, >> >> I have attached my code. It runs but does not behave as I intended it to. >> Th

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
looked > at Databinder Dispatch http://databinder.net/dispatch/About for your > url calls? > > On Nov 12, 3: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 te

[Lift] Re: CometActor and render

2009-11-10 Thread Jack Widman
Sorry. Just reread my past post and it is indeed unclear. I will post running code tonight. I very much appreciate your help. On Tue, Nov 10, 2009 at 1:27 AM, David Pollak wrote: > > > On Mon, Nov 9, 2009 at 10:10 PM, Jack Widman wrote: > >> The only difference between you

[Lift] Re: CometActor and render

2009-11-09 Thread Jack Widman
y doing a reRender on changed >values. > > Thanks, > > David > > On Sun, Nov 8, 2009 at 3: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, u

[Lift] Re: CometActor and render

2009-11-08 Thread Jack Widman
re polling, that >you have a reasonable poll interval, otherwise you'll starve your CPU. >Further, having reRender on each loop through means that you're forcing a >lot of bytes over the wire rather than only doing a reRender on changed >values. > > Thanks, &

[Lift] Re: CometActor and render

2009-11-08 Thread Jack Widman
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? > > > > > > > > > -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 --~--~-~--~~~---~--~~

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
n => { > > "Message: " + ex.getMessage > > } > >} > > } > > > > For some urls, e.g., http://bae.cf.huffingtonpost.com/ , an exception > > is thrown but the exception message is null. Any ideas? > > > > > >

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
nt" -> "Mozilla/ > > 5.0") > > val responseBody = Http (req_with_agent as_str) > > responseBody.length.toString > >} catch { > > case ex: Exception => { > > "Message: " + ex.getMessage > > }

[Lift] Re: regular expression

2009-11-02 Thread Jack Widman
ignore case? I know its simple but I can't find it. >> >> > > > > -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift

[Lift] Re: global exception page

2009-10-28 Thread Jack Widman
ke to have one error page that appears when any exception > > occurs. How would I do that? > > > > > > > > > > -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Lift] Re: 1.1

2009-10-25 Thread Jack Widman
om.xml to be: > > 1.1-SNAPSHOT > > That will give you the latest HEAD build. If you want a known point in > time, use M6: > > 1.1-M6 > > Cheers, Tim > > On Oct 25, 6:00 pm, jack wrote: > > I have been using lift 1.0. What is the best way to upgrade to 1.1? > &

[Lift] Re: Newbie post: Where are the basics and best practices?

2009-10-21 Thread Jack Widman
Just wanted to say that I have never seen a community like this. Its fantastic! On Wed, Oct 21, 2009 at 11:05 PM, David Pollak < feeder.of.the.be...@gmail.com> wrote: > > > On Wed, Oct 21, 2009 at 4:15 PM, Strom wrote: > >> >> Hello everyone, >> I am pretty much brand new to lift and scala, and

[Lift] Re: html not being evalutated

2009-10-21 Thread Jack Widman
Oops. I just noticed I made source.body a String and not a NodeSeq. Sometimes source.body is text with html tags in it. Like - Hey dude, what are you doing? I guess I should make it a NodeSeq. Sorry about that. Jack On Wed, Oct 21, 2009 at 9:33 AM, David Pollak wrote: > > > On Wed, Oct 21, 2009

[Lift] Re: does this look ok?

2009-10-18 Thread Jack Widman
yes. I think I found the problem elsewhere in the logic. thanks. On Sun, Oct 18, 2009 at 11:07 PM, Naftoli Gugenheim wrote: > I think so... Does it compile? > > > On Sun, Oct 18, 2009 at 7:13 PM, jack wrote: > >> >> Does this code look ok? >> >> >> def createDisplay(blogs:List[Blog]):NodeSeq =

[Lift] Re: The quality of the Lift list [was: Don't shoot the non-XML messenger ...]

2009-10-14 Thread Jack Widman
fyi http://developers.curl.com/people/rshiplett On Wed, Oct 14, 2009 at 3:40 PM, Jack Widman wrote: > Not to harp on it but: > > *When some sycophants of > Seaside got, nasty, I did not walk away from Seaside, warts and all. > * > suggests this person has had this

[Lift] Re: The quality of the Lift list [was: Don't shoot the non-XML messenger ...]

2009-10-14 Thread Jack Widman
Not to harp on it but: *When some sycophants of Seaside got, nasty, I did not walk away from Seaside, warts and all. * suggests this person has had this problem elsewhere. On Wed, Oct 14, 2009 at 3:37 PM, Jack Widman wrote: > The necessity of this kind of action (the banning) is absolut

[Lift] Re: The quality of the Lift list [was: Don't shoot the non-XML messenger ...]

2009-10-14 Thread Jack Widman
The necessity of this kind of action (the banning) is absolutely no sign of anything having been done wrong. There will ALWAYS be people like that. On Wed, Oct 14, 2009 at 3:31 PM, koveen wrote: > > I think that when someone enters a group, expecting to be shot, > it is a very kind act only to b

[Lift] Re: Naming CometActors

2009-10-07 Thread Jack Widman
; > Multiple requests share the same CometActor given type/name. The > CometActor lives until the session ends or until it times out based on its > lifespan. > > >> >> Derek >> >> >> On Tue, Oct 6, 2009 at 1:28 PM, Jack Widman wrote: >> >&

[Lift] Re: maven and jetty

2009-10-06 Thread Jack Widman
nder src/main/webapp vs :run-war that uses > what is bundled in the war (surprise surprise!) > > This should all be explained in the maven-jetty-plugin docs as this is not > something lift specific by any means. > > Cheers, Tim > > Sent from my iPhone > > On 6 Oct 200

[Lift] Re: maven and jetty

2009-10-06 Thread Jack Widman
lly restarts > automatically. > > HTH, Mark > > On Oct 5, 8:44 pm, Jack Widman wrote: > > Well it seems that mvn run-war is creating the war and overriding the one > I > > just uploaded. How do I just run with a given war and

[Lift] Naming CometActors

2009-10-06 Thread Jack Widman
So if give a CometActor a static name, say "Other", then every request will get the same running instance of the CometActor. But if I name it dynamically, say with a random string, each request will get its own instance of the CometActor. Right? -- Jack --~--~-~--~~~-

[Lift] Re: Help!

2009-10-06 Thread Jack Widman
gt; > /davidB > > On Tue, Oct 6, 2009 at 05:31, jack wrote: > > > > 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
me. > > Hope you get it sorted :-) > > Cheers, Tim > > Sent from my iPhone > > On 6 Oct 2009, at 05:25, Jack Widman wrote: > > So I am using a snippet like this > def go:NodeSeq = { > var term:String = S.param("term").openOr("") > >

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
ugh 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
Sorry if this is a dumb question but in , what is searchString? This is in an html file. I am obviously missing something. On Mon, Oct 5, 2009 at 2:40 PM, David Pollak wrote: > > > On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman wrote: > >> Understood. My intention is to send a S

[Lift] Re: Help!

2009-10-05 Thread Jack Widman
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 just run it, not create another one. How do I do that? > > > -- Jack --~--~-~--~~~---~--~~ You rece

[Lift] Re: maven and jetty

2009-10-05 Thread Jack Widman
Well it seems that mvn run-war is creating the war and overriding the one I just uploaded. How do I just run with a given war and not create the war. On Mon, Oct 5, 2009 at 10:37 PM, Ryan Stradling wrote: > > Have you verified another server is not running on that port? > > Have you tried http://

[Lift] Re: How to share request scope data among snippets in Lift

2009-10-05 Thread Jack Widman
od ol' English seems to be quite >> prevalent these days ;-) >> > > Is this the Queen's English? ;-) > > >> >> On 5 Oct 2009, at 17:02, Jack Widman wrote: >> >> > Why don't we make Esperanto the official Lift language? >> >> >>

[Lift] Re: How to share request scope data among snippets in Lift

2009-10-05 Thread Jack Widman
Well it is high enough level! [?] On Mon, Oct 5, 2009 at 3:49 PM, Viktor Klang wrote: > > > On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman wrote: > >> Why don't we make Esperanto the official Lift language? >> >> > I'd say make Scala the official languag

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
glad to be using Lift. On the Comet alone it save me a LOT of time. Of course, I have a lot to learn. On Mon, Oct 5, 2009 at 3:08 PM, David Pollak wrote: > > > On Mon, Oct 5, 2009 at 12:06 PM, Jack Widman wrote: > >> Because when the users searches on a new keyword, the actors

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
wrote: > > > On Mon, Oct 5, 2009 at 11:53 AM, Jack Widman wrote: > >> In my app, when the user is done searching on one keyword, they click a >> link which takes them back to the main search page. Thats the time when I >> wanted the CometActor to stop. Otherwise

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
, David Pollak wrote: > > > On Mon, Oct 5, 2009 at 11:45 AM, Jack Widman wrote: > >> Interesting. I will try that. And I won't send any more ShutDownMessages >> :) >> Though I should add that each CometActor is doing a lot of processing. So >> I it would be g

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
o know how long it will take. Maybe I could just kill all the actors directly that are doing the processing. On Mon, Oct 5, 2009 at 2:40 PM, David Pollak wrote: > > > On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman wrote: > >> Understood. My intention is to send a ShutDown messa

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
does not equate with browser-close event. > > Br's, > Marius > > On Oct 5, 3:22 pm, Jack Widman wrote: > > Yes, thats what I meant. Thanks > > > > On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett >wrote: > > > > > > > > > >

[Lift] Re: How to share request scope data among snippets in Lift

2009-10-05 Thread Jack Widman
Why don't we make Esperanto the official Lift language? On Mon, Oct 5, 2009 at 11:52 AM, marius d. wrote: > > > > On Oct 5, 6:15 pm, David Pollak wrote: > > On Sun, Oct 4, 2009 at 2:41 AM, ishiijp > wrote: > > > > > Thank you for your example, David. > > > It will work in my purpose. > > > > C

[Lift] Re: ShutDown and CometActor

2009-10-05 Thread Jack Widman
Actually, this is working nicely now. Thanks. On Mon, Oct 5, 2009 at 11:46 AM, David Pollak wrote: > When you send the shutdown message, oddly enough, the CometActor shuts > down. > You don't have to do this (in fact, don't do it). Lift will shut the > CometActor down automatically. > > > On Su

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
Yes, thats what I meant. Thanks On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett wrote: > > But you can do it on session termination (which is what you probably > want): > > > http://scala-tools.org/mvnsites-snapshots/liftweb/lift-webkit/scaladocs/net/liftweb/http/SessionVar.html > > Checkout the

[Lift] Re: a very simple question

2009-10-04 Thread Jack Widman
Well my app is a search application. You search for certain web pages and I do some processing after the results are displayed. Thats why I am using Comet. Certain information is added to each result link. I want the user to be able to either hit the back button or click on alink that goes to the s

[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
i, > > On Thu, Oct 1, 2009 at 1:11 PM, Jack Widman wrote: > > David, > > I have attached a (non) working example. It compiles and runs and does a > > part of what I want it to do but not completely. It first displays a > couple > > of links and the link body

[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
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 and tell me whats wrong with it. This code is supposed to display a list of p

[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 and at the same time > >

[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] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
I was referring to that book. Is there another? :) Thanks for your help Daniel. On Mon, Sep 14, 2009 at 9:52 AM, Daniel Nelson wrote: > > If you're referring to the Exploring Lift book, have a look at Section > "3.11.1 Binding Values in Snippets" where it explains bind. (I'm new > to Lift myself

[Lift] Re: Ajax example from the book

2009-09-14 Thread Jack Widman
Thanks. Yes thats what I meant. On Mon, Sep 14, 2009 at 3:42 PM, Derek Chen-Becker wrote: > I think that he's referring to the SetHtml, which is actually a JsExp that > has to be returned from any Ajax functions (the javascript is returned to > the client and executed). In the case of the example

[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: 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 used dispatch from databinder.net? It

[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. > > David > > > On Tue, Sep 8,

[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: 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
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: > > object FooVar extends SessionVar[Box[String]](Empty) > > // to set > FooVar.set(Full(fooValToSet)) > > // to retreive > val foo = FooVar.is.openOr("Not found") > > C

[Lift] Re: putting data in a session

2009-09-06 Thread Jack Widman
Thanks Indrajit for the quick response! On Sun, Sep 6, 2009 at 4:22 PM, Indrajit Raychaudhuri wrote: > > object FooVar extends SessionVar[Box[String]](Empty) > > // to set > FooVar.set(Full(fooValToSet)) > > // to retreive > val foo = FooVar.is.openOr("Not found") > > Cheers, Indrajit > > On Sep

[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: 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
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? package com.authoritude.snippet import java.io.{InputStreamReader, BufferedInputStream, BufferedRea

[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 writes: > > > Of course I co

[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 button is: >> >> uncaught exception Refer

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
Thanks Greg. Your points on the compiler are well taken. A compiled language with higher order functions, general functional programming paradigms and all the rest that Scala has is great. I also like Haskell, but like you, I think the JVM and surrounding Java Culture, to the extent that it is usef

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
This was just what I needed to push me over the edge. Actually I was there already and the biggest two reasons were a compiled, functional language and Lift's comet support. Thanks for the quick responses everybody, and David, I will keep in mind what you said about developers. I am on the verge o

[Lift] Re: Lift vs Rails

2009-08-23 Thread Jack Widman
Thanks Marius. I agree its a no brainer. Just wanted some independent confirmation!. On Sun, Aug 23, 2009 at 1:08 PM, marius d. wrote: > > Looks like you don't need to be convinced :) ... Scala with its > features + Java compatibility + Lift's rich set of features + > performance of Scala & Lif

[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? :) >> > > I used to strug