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

Re: [Lift] Re: simple database question

2009-11-26 Thread Jack Widman
gt; } > > You can then do things like this: > > val person = 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 > va

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

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 wrote: > Jack, > > 1. > object MyThing extends SessionVar[Box[String]](Empty) > > Im using Box[String] here, but you can use

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

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
I kind of like it. Says exactly what it does :) On Sat, Nov 21, 2009 at 9:56 AM, David Pollak wrote: > Helpers.readWholeThing(reader): String > > Yes... this method name is ripe for bettering. > > > On Sat, Nov 21, 2009 at 6:47 AM, jack wrote: > >> I have seen this

[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] 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] 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
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] 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] 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] 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
ges, since scala implicitly 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 wrote: > >> I am trying to use CometListener. According tohttp://b

[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] 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: 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
. On Thu, Nov 12, 2009 at 5:12 PM, David Pollak 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.pdf<http://lamp.epfl.ch/%7

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
12 PM, David Pollak 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.pdf<http://lamp.epfl.ch/%7Ephaller/doc/ScalaActors

[Lift] Re: CometActor and render

2009-11-12 Thread Jack Widman
Ok. I actually had this problem before I upgraded to M6. On Thu, Nov 12, 2009 at 5:03 PM, David Pollak wrote: > Jack, > > Your pom.xml file mixes Scala 2.7.3, Lift 1.0 and Lift 1.1-M6... this > doesn't work. > > You have to be running with the same version of Lift. >

[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] 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-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-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
hings 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 wrote: > Jack, > > I reproduced your code a

[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 wrote: > Jack, > > I reproduced your code and it seems to work fine. I've enclosed a working &g

[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-08 Thread Jack Widman
case class Tick On Sun, Nov 8, 2009 at 5:31 AM, Timothy Perrett wrote: > > 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 wrote: > > > > > By the way, I know th

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

2009-11-05 Thread Jack Widman
Maybe: > > try { > ... > } 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: >

[Lift] Re: using Dispatch library for Http

2009-11-05 Thread Jack Widman
f 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. h

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

2009-11-02 Thread Jack Widman
_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 wrote: > >> >> I am using the findAllIn function for regular expressions. How do I >> make it

[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: global exception page

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

[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] 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 wrote: > > Jack, > > This question has been asked quite a number of times recently on list. > > Change: > > 1.0 > > on the liftweb dependencies in your p

[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] 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] Re: Newbie post: Where are the basics and best practices?

2009-10-21 Thread Jack Widman
t; tutorials already exists for beginners before I send more messages for >> the board, but my main issue is knowing whether or not I'm getting the >> right information; most every lift example document/wiki/tutorial I've >> seen is outdated code or incomplete. I'm looking f

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

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

[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] 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] 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
te: > > >> > Hi Aule, > > > > >> > > I am still looking to see if I over-looked somewhere on the web > where > > >> > > there is a 1.0.2 Boot.scala > > > > >> > > 1) showing unambiguously how to flip the default Content

[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

[Lift] Re: Help!

2009-10-06 Thread Jack Widman
nal tweak the jetty configuration (read 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 &

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
hy Perrett wrote: > 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
fying > the comet actor be dynamic. So you need to have that xml be generated by a > snippet. A snippet is an XML to XML function. > > > - > jack wrote: > > > Let me start again. Maybe I am misunderstanding when Comet should be

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

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

2009-10-05 Thread Jack Widman
u tried http:/// Just to see if that works > > Sent from my iPhone > > On Oct 5, 2009, at 10:12 PM, jack 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

[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: 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
gt; > > > > > Hi. > > > > > > > If my lift application have some data that cost to create, and I > want > > > > > to share it among snippets, how to do in Lift? > > > > > > > if such data are shared inside one snippet, I m

[Lift] Re: ShutDown and CometActor

2009-10-05 Thread Jack Widman
utomatically. > > > On Sun, Oct 4, 2009 at 7:32 PM, jack 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

[Lift] Re: execute code when browser is closed

2009-10-05 Thread Jack Widman
l > > Checkout the method: > > registerCleanupFunc > > Cheers, Tim > > On Oct 5, 8:54 am, Viktor Klang wrote: > > On Mon, Oct 5, 2009 at 6:50 AM, jack wrote: > > > > > I would like to call a function when the browser is clos

[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-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] 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
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] 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 wrote: > > If memory serves, the comet actor lives on in the session scope until > its either sent the ShutDown message expli

  1   2   >