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

2010-02-27 Thread Jack Widman
-INF for 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 jack.wid...@gmail.com wrote: I would like to access an image on the client via a URL. How

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

[Lift] Re: error locating template/main

2009-12-15 Thread jack
never mind :) On Dec 16, 1:09 am, jack jack.wid...@gmail.com 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.ValidationException: :1:6

[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

[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

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

Re: [Lift] Re: simple database question

2009-11-26 Thread Jack Widman
= Person.find(1) // retrieve the person with id = 1 from the database val person = Person.find(By(Person.name, Jack)) // retrieve the person with name = Jack from the database val people = Person.findAll() // retrieve all people form the database val people = Person.findAll(By_(Person.id, 10

[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

[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 jack.wid...@gmail.com wrote: I have the following method in a CometActor override def highPriority = {     case Tick(page) = {       pages = processPages(pages,page

[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

[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 jack.wid...@gmail.com wrote: I defined a session

Re: [Lift] Re: session variable question

2009-11-23 Thread Jack Widman
Thanks Tim. I didn't know S.init has to be called explicitly. This can be called from anywhere? On Mon, Nov 23, 2009 at 8:19 AM, Timothy Perrett timo...@getintheloop.euwrote: Jack, 1. object MyThing extends SessionVar[Box[String]](Empty) Im using Box[String] here, but you can use whatever

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

[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

Re: [Lift] InputStream to String

2009-11-21 Thread Jack Widman
I kind of like it. Says exactly what it does :) On Sat, Nov 21, 2009 at 9:56 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Helpers.readWholeThing(reader): String Yes... this method name is ripe for bettering. On Sat, Nov 21, 2009 at 6:47 AM, jack jack.wid...@gmail.com wrote: I

Re: [Lift] Re: InputStream to String

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

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

2009-11-19 Thread Jack Widman
...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=. -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 -- You received this message because you are subscribed to the Google Groups Lift

Re: [Lift] Re: Call it Lift 2.0

2009-11-17 Thread Jack Widman
to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=. -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 -- You received this message because you are subscribed

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

2009-11-16 Thread Jack Widman
at http://groups.google.com/group/liftweb?hl=. -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 -- 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

[Lift] Re: CometListener

2009-11-13 Thread Jack Widman
is 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 AM, David Pollak feeder.of.the.be...@gmail.com wrote

[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

[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 jack.wid...@gmail.com 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 dri...@gmail.com wrote

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

2009-11-13 Thread Jack Widman
version${lift.version}/version} /dependency (and so on, for each lift-* dependency) I'm 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

[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 jack.wid...@gmail.com 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

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
, David Pollak feeder.of.the.be...@gmail.com wrote: Jack, The issues you're seeing are not Lift related. You are not using Actors correctly. Please see Philipp Haller's preso on Actors: http://lamp.epfl.ch/~phaller/doc/ScalaActors.pdfhttp://lamp.epfl.ch/%7Ephaller/doc/ScalaActors.pdf

[Lift] Re: CometActor and render

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

[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 feeder.of.the.be...@gmail.com wrote: On Thu, Nov 12, 2009 at 2:25 PM, Jack Widman jack.wid...@gmail.comwrote: Is it that I am putting things on a Queue from within an the Calculator Actor and having

[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 jack.wid...@gmail.com 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] Re: CometListener

2009-11-12 Thread Jack Widman
imports superpackages). -Ross On Nov 12, 2009, at 11:38 PM, jack wrote: I also tried net.liftweb.http On Nov 12, 11:35 pm, jack jack.wid...@gmail.com 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

[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] 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 jack.wid...@gmail.comwrote

[Lift] Re: CometActor and render

2009-11-11 Thread jack
is. On Nov 11, 11:26 pm, Jack Widman jack.wid...@gmail.com 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 : -1. A process

[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 feeder.of.the.be...@gmail.com wrote: On Mon, Nov 9, 2009 at 10:10 PM, Jack Widman jack.wid...@gmail.comwrote: The only

[Lift] Re: CometActor and render

2009-11-09 Thread Jack Widman
off the queue and rerenders the page. I tried starting the process in its own Actor that I start in localSetup but it seems somehow to be blocking the lowPriority method from doing its thing. On Sun, Nov 8, 2009 at 11:35 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Jack, I reproduced

[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

[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 jack.wid...@gmail.com wrote: I have a CometActor. render is called when it is supposed to be but I don't see the changes. If I

[Lift] Re: CometActor and render

2009-11-08 Thread Jack Widman
On Sun, Nov 8, 2009 at 5:31 AM, Timothy Perrett timo...@getintheloop.euwrote: Without posting your code it's going to be tough to help you. Cheers, Tim Sent from my iPhone On 8 Nov 2009, at 08:14, jack jack.wid...@gmail.com wrote: By the way, I know that when render is called, all

[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 jack.wid...@gmail.com 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 browser

[Lift] Re: CometActor and render

2009-11-08 Thread Jack Widman
Thanks David. This is a big help. Can you tell me exactly how lowPriority, mediumPriorty and highPriority work? When are they called? On Sun, Nov 8, 2009 at 11:35 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Jack, I reproduced your code and it seems to work fine. I've enclosed

[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] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
: + ex.toString case ex: Exception = Message: + ex.getMessage } -Ross On Nov 5, 2009, at 11:45 PM, jack wrote: 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

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
{ ... } catch { case ex: Exception if ex.getMessage == null = Message: + ex.toString case ex: Exception = Message: + ex.getMessage } -Ross On Nov 5, 2009, at 11:45 PM, jack wrote: I'm using the Dispatch Databinder library for Http. http://bit.ly/NPWcW My code

[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] Re: regular expression

2009-11-02 Thread Jack Widman
or UNICODE_CASE. See java.util.regex.Pattern javadoc for details. Probably better to ask Scala questions on the Scala list(s). On Mon, Nov 2, 2009 at 10:28 AM, jack jack.wid...@gmail.com wrote: I am using the findAllIn function for regular expressions. How do I make it ignore case? I know its simple

[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

[Lift] Re: global exception page

2009-10-28 Thread Jack Widman
Yes. Thanks alot Tim. On Wed, Oct 28, 2009 at 9:32 AM, Timothy Perrett timo...@getintheloop.euwrote: Jack, LiftRules.exceptionHandler.prepend { case (Props.RunModes.Production, r, e) = { Log.error(IMPORTANT IMPORTANT IMPORTANT: Unhandeled error occoured!!,e

[Lift] TextileParser

2009-10-25 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 Groups

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

2009-10-25 Thread Jack Widman
Thanks Tim. And next time I will search more before asking. On Sun, Oct 25, 2009 at 2:26 PM, Timothy Perrett timo...@getintheloop.euwrote: Jack, This question has been asked quite a number of times recently on list. Change: version1.0/version on the liftweb dependencies in your pom.xml

[Lift] Re: html not being evalutated

2009-10-21 Thread jack
...@gmail.com wrote: On Tue, Oct 20, 2009 at 10:16 PM, jack jack.wid...@gmail.com wrote: 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

[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, bwhat/b 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 feeder.of.the.be...@gmail.com

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

2009-10-21 Thread Jack Widman
-- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed

[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 'bHey There/b' instead of 'Hey There' in bold. This method is in a CometActor and is running when the page is rendered. Am I missing

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { span id=scoretable { for {blog - blogs} yield trtda href={blog.url}{blog.url}/ a/tdtd {blog.displayScore}/td/tr } /table/span } def render = { bind(joop - createDisplay(blogs)) }

[Lift] does this look ok?

2009-10-18 Thread jack
Does this code look ok? def createDisplay(blogs:List[Blog]):NodeSeq = { span id=scoretable { for {blog - blogs} yield trtda href={blog.url}{blog.url}/ a/tdtd {blog.title}/td/tr } /table/span } def render = { bind(joop - createDisplay(blogs)) }

[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 naftoli...@gmail.comwrote: I think so... Does it compile? On Sun, Oct 18, 2009 at 7:13 PM, jack jack.wid...@gmail.com wrote: Does this code look ok? def createDisplay

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

2009-10-14 Thread Jack Widman
Follow me:http://twitter.com/dpp Surf the harmonics -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- Jack

[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 jack.wid...@gmail.com wrote: The necessity of this kind of action

[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 jack.wid...@gmail.com 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 problem

[Lift] Re: Naming CometActors

2009-10-07 Thread Jack Widman
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 jack.wid...@gmail.comwrote: So if give a CometActor a static name, say Other, then every request will get the same running

[Lift] Re: execute code when browser is closed

2009-10-06 Thread Jack Widman
timo...@getintheloop.euwrote: Hey jack, As I said before, I think the design you have is wrong if your needing to code in a hacky way such as this. The way you articulate the justification for using shutdown almost certianly clarifies an incorrect design. Personally I think you could use

[Lift] Re: Help!

2009-10-06 Thread Jack Widman
the jetty doc) FYI : Tim Perret is working on solution to create standalone jar with jetty embedded (search in the mailing-list) If you don't use Comet, you could try the winstone-maven-plugin to create a runnable jar /davidB On Tue, Oct 6, 2009 at 05:31, jack jack.wid...@gmail.com wrote

[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: maven and jetty

2009-10-06 Thread Jack Widman
restarts automatically. HTH, Mark On Oct 5, 8:44 pm, Jack Widman jack.wid...@gmail.com 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 not create the war. -- Jack

[Lift] Re: maven and jetty

2009-10-06 Thread Jack Widman
the stuff under 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 2009, at 21:57, Jack Widman

[Lift] Re: ShutDown and CometActor

2009-10-05 Thread Jack Widman
automatically. On Sun, Oct 4, 2009 at 7:32 PM, jack jack.wid...@gmail.com wrote: 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

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

2009-10-05 Thread Jack Widman
://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
termination does not equate with browser-close event. Br's, Marius On Oct 5, 3:22 pm, Jack Widman jack.wid...@gmail.com wrote: Yes, thats what I meant. Thanks On Mon, Oct 5, 2009 at 4:10 AM, Timothy Perrett timo...@getintheloop.eu wrote: But you can do it on session termination

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
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 feeder.of.the.be...@gmail.comwrote: On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman jack.wid...@gmail.comwrote: Understood. My intention is to send

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
, David Pollak feeder.of.the.be...@gmail.comwrote: On Mon, Oct 5, 2009 at 11:45 AM, Jack Widman jack.wid...@gmail.comwrote: 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 good

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
feeder.of.the.be...@gmail.comwrote: On Mon, Oct 5, 2009 at 11:53 AM, Jack Widman jack.wid...@gmail.comwrote: 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
. 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 feeder.of.the.be...@gmail.comwrote: On Mon, Oct 5, 2009 at 12:06 PM, Jack Widman jack.wid...@gmail.comwrote: Because when the users searches on a new keyword, the actors

[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 viktor.kl...@gmail.com wrote: On Mon, Oct 5, 2009 at 6:02 PM, Jack Widman jack.wid...@gmail.com wrote: Why don't we make Esperanto the official Lift language? I'd say make Scala the official language

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

2009-10-05 Thread Jack Widman
, but good 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, the simply functional web framework http://liftweb.net Beginning Scala http

[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] Re: maven and jetty

2009-10-05 Thread Jack Widman
? Have you tried http://url:80/name of app Just to see if that works Sent from my iPhone On Oct 5, 2009, at 10:12 PM, jack jack.wid...@gmail.com wrote: 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

[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

[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 jack.wid...@gmail.com 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

[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 jack.wid...@gmail.com wrote: I meant to say jetty:run-war On Mon, Oct 5, 2009 at 10:52 PM, jack jack.wid...@gmail.com wrote: Is mvn jetty:run supposed to creat the war file? I want to upload a war

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
Sorry if this is a dumb question but in lift:comet type=Search name={searchString}/, 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 feeder.of.the.be...@gmail.comwrote: On Mon, Oct 5, 2009 at 10:27 AM, Jack Widman

[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 jack.wid...@gmail.com wrote: Sorry if this is a dumb question but in lift:comet type=Search name={searchString}/, what is searchString? This is in an html file. I am obviously

[Lift] Re: execute code when browser is closed

2009-10-05 Thread jack
getting it. On Oct 5, 11:46 pm, Jack Widman jack.wid...@gmail.com wrote: Sorry if this is a dumb question but in lift:comet type=Search name={searchString}/, 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
getting it. On Oct 5, 11:46 pm, Jack Widman jack.wid...@gmail.com wrote: Sorry if this is a dumb question but in lift:comet type=Search name={searchString}/, what is searchString? This is in an html file. I am obviously missing something. On Mon, Oct 5, 2009 at 2:40 PM

[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

[Lift] Re: comet

2009-10-04 Thread jack
unless something escapes me :) Br's, Marius On Oct 4, 6:12 pm, jack jack.wid...@gmail.com 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: a very simple question

2009-10-04 Thread Jack Widman
to the page? I am just not comfortable yet with the mechanics of how Lift handles comet. Thanks in advance. Jack On Sun, Oct 4, 2009 at 6:50 PM, Timothy Perrett timo...@getintheloop.euwrote: If memory serves, the comet actor lives on in the session scope until its either sent the ShutDown

[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 atsuhiko.yaman...@gmail.com wrote: Hi, On Sat, Oct 3, 2009 at 1:05 PM, jack jack.wid...@gmail.com wrote

[Lift] Re: CometActor timeout problem

2009-10-04 Thread jack
Excellent. Thanks. On Oct 5, 12:14 am, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Mon, Oct 5, 2009 at 8:16 AM, jack jack.wid...@gmail.com 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

[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] 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 atsuhiko.yaman...@gmail.com wrote: Hi, On Sat, Oct 3, 2009 at 1:05 PM, jack jack.wid

[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

[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 jack.wid...@gmail.com wrote: David, I have attached a (non) working

[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: Hi, On Thu

[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 jack.wid...@gmail.com wrote: Atsuhiko, How would I make one small change? I would like each link to refresh

  1   2   >