[Lift] Re: HSQL support

2009-09-21 Thread David Pollak
On Sun, Sep 20, 2009 at 5:18 PM, sergey srassok...@gmail.com wrote: Hi! My question is - does Lift support HSQL now? No and we have no plans to support HSQL. We support H2. Is there a particular reason that you need HSQL? (I have the following error when trying to create connection to

[Lift] Turning off garbage collection

2009-09-21 Thread Charles F. Munat
Is it possible to turn off garbage collection on an individual page if there's nothing to be garbage collected on that page? If so, how does one do it? Is it possible to turn off garbage collection completely? If so, how? I can't seem to find this anywhere. Chas.

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Timothy Perrett
Chas, This has been asked a million times on list - did you not try searching one of the many archives? LiftRules.enableLiftGC = false; Tim On 21 Sep 2009, at 08:37, Charles F. Munat wrote: Is it possible to turn off garbage collection on an individual page if there's nothing to be

[Lift] Re: Session locking...

2009-09-21 Thread Timothy Perrett
Hey Marius, What you detail is what I want to achieve - perhaps I didn't articulate myself succinctly enough in the first instance :-( Could you perhaps detail how one could implement such a system at app level without using lift session? Cheers, Tim On 20 Sep 2009, at 16:14, marius d.

[Lift] Dependency hell? More JPA trouble...

2009-09-21 Thread Charles F. Munat
I am getting the following error. I've been up all night trying to track this down with no luck. It seems it has something to do with the GCLib dependency (and, in fact, when I look at the JavaDocs for GCLib, there is no such method). In the target WEB-INF/lib directory, I find:

[Lift] Re: Turning off garbage collection

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 6:34 AM, Xavi Ramirez xavi@gmail.com wrote: Doesn't that disable garbage collection for the whole site? Is it possible to turn off on specific pages? It's currently not possible to turn of Lift's GUID - Function GC on a page by page basis. What's the use case

[Lift] Re: Alternate Lift builds?

2009-09-21 Thread Indrajit Raychaudhuri
Ryan, Your comment: (we just use dev so local developers' .war files are built as utipu-dev.war) made me perceive that you go for manual build for dev. But, yes, point accepted. Taken that you can inject special project.version via -D but what about having other dependent modules using

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Xavi Ramirez
No use case. Just curious... On Mon, Sep 21, 2009 at 10:04 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Sep 21, 2009 at 6:34 AM, Xavi Ramirez xavi@gmail.com wrote: Doesn't that disable garbage collection for the whole site? Is it possible to turn off on specific

[Lift] Re: Turning off garbage collection

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 7:11 AM, Xavi Ramirez xavi@gmail.com wrote: No use case. Just curious... K -- I've there's a reasonable use case (e.g., this page is for mobile devices where a ping is costly), open a ticket and we'll work on it. On Mon, Sep 21, 2009 at 10:04 AM, David Pollak

[Lift] Re: Turning off garbage collection

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 1:41 AM, Timothy Perrett timo...@getintheloop.euwrote: Chas, This has been asked a million times on list - did you not try searching one of the many archives? Folks, Our stated policy is that RTFM is not a valid response on this list. Folks, even Lift committers

[Lift] Re: Dependency hell? More JPA trouble...

2009-09-21 Thread Aaron Valade
On Sep 21, 2009, at 9:00 AM, Charles F. Munat wrote: Thanks. Pulling the JTA exception out and deleting the 2.0.2 jar worked. Now to figure out what's adding that 2.0.2.jar... Try running mvn dependency:tree. It will show you exactly what jars are being pulled in by what dependencies.

[Lift] Re: Alternate Lift builds?

2009-09-21 Thread Ryan Donahue
The default profile we have is just so that a developer doesn't have to provide the release version when invoking maven on the command line. I didn't want to require more typing :) Taken that you can inject special project.version via -D but what about having other dependent modules using that

[Lift] lift-json serialization

2009-09-21 Thread Tim Nelson
First of all thanks for a great library. I'm finding lift-json quite useful in my current project. I have a use case where I need to convert a case class into a JObject. The code is there, but it's wrapped inside the Serialization object. So, I took the liberty of moving the serialize method to

[Lift] Re: lift-json serialization

2009-09-21 Thread Joni Freeman
Hi Tim, Thanks for the kind words! The serialization functions should already be publicly accessible, you just need to import them into scope: import net.liftweb.json.Serialization.{read, write} val ser = write(...) val obj = read[..](ser) Cheers Joni On Sep 21, 6:52 pm, Tim Nelson

[Lift] Code Plugability in Lift

2009-09-21 Thread glenn
Forgive me. I'm bringing up the subject of modularization in Lift under a new heading, but the last discussion was, sadly, all over the map and only served to emphasize the problem. So let me narrow it down, a bit, here, and ask: How is it possible to create two different snippet

[Lift] Re: lift-json serialization

2009-09-21 Thread Joni Freeman
Oh, I see the point now and agree that this is useful. Let's add thia to API. Thanks a lot! Cheers Joni On Sep 21, 6:52 pm, Tim Nelson tnell...@gmail.com wrote: First of all thanks for a great library. I'm finding lift-json quite useful in my current project. I have a use case where I need

[Lift] Re: Alternate Lift builds?

2009-09-21 Thread Kevin Wright
properties and profiles aren't mutually exclusive. In a typical workflow, the property will just be another level of indirection: developer sets property which sets profile instead of: developer sets profile So profiles are still the underlying mechanism for configuring units of behaviour.

[Lift] Concurrent Web Service Requests?

2009-09-21 Thread espeed
I have been researching Web frameworks that will take advantage of multi-core chips, and I'm trying to get a picture for how Lift uses Scala's event-based actors for incoming page requests and how an application developer would use actors in Lift to make concurrent Web service or DB requests.

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Charles F. Munat
That was my original question, but as it turns out, I don't need it at all at the moment, so Tim's reply was sufficient. I would like to know the answer, though. Chas. Xavi Ramirez wrote: Doesn't that disable garbage collection for the whole site? Is it possible to turn off on specific

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Charles F. Munat
Why a once every 75 second ajax request to the server if it's not necessary? But I can live with it. Chas. David Pollak wrote: On Mon, Sep 21, 2009 at 6:34 AM, Xavi Ramirez xavi@gmail.com mailto:xavi@gmail.com wrote: Doesn't that disable garbage collection for the whole

[Lift] Re: Turning off garbage collection

2009-09-21 Thread Charles F. Munat
I agree that RTFM is bad. It pisses people off and they go away. I think David's policy is probably the best I've ever encountered on a list. That said, Tim didn't really say RTFM and he did answer the question, he just voiced surprise that I didn't find it on my own. I was too exhausted and

[Lift] Re: How to mixin both MegaProtoUser CRUDify?

2009-09-21 Thread David Pollak
Gakkk... I'm not sure it can be done. You're welcome to try different combinations of abstract override, etc. in the traits and see if you can come up with an elegant or at least workable solution. On Mon, Sep 21, 2009 at 6:40 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, For my User

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread David Pollak
This is an impedance mis-match between POJOs (what JPA expects) and the richer fields that Mapper and Record have. I'm working on an interface ( http://github.com/dpp/liftweb/blob/master/lift-util/src/main/scala/net/liftweb/util/ValueHolder.scala) that should be a base trait on everything in Lift

[Lift] Re: Concurrent Web Service Requests?

2009-09-21 Thread David Pollak
Lift only uses event-based Actors for supporting CometActors. All parts of the standard HTTP request/response cycle (except for the CometActors) are handled on a single thread. Having a single thread handle an HTTP request is not materially less efficient in terms of multi-core CPU utilization

[Lift] Re: Dependency hell? More JPA trouble...

2009-09-21 Thread Charles F. Munat
That's super useful. Thanks! As I suspected, it's the joda-time jar. But luckily so far it seems to work with the other version of gclib. Chas. Aaron Valade wrote: On Sep 21, 2009, at 9:00 AM, Charles F. Munat wrote: Thanks. Pulling the JTA exception out and deleting the 2.0.2 jar

[Lift] Re: Concurrent Web Service Requests?

2009-09-21 Thread espeed
On Sep 21, 2:33 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Lift only uses event-based Actors for supporting CometActors.  All parts of the standard HTTP request/response cycle (except for the CometActors) are handled on a single thread. Hi David - Thanks for your quick response.

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread glenn
David, Does this mean you could write an entity class, like so: class User(val firstName: String, val lastName: String, val userName: String, val email: String, val password: String) with myTrait {...} and it would be useable in either a JPA or mapper or record implementation? That would be

[Lift] Re: HSQL support

2009-09-21 Thread sergey
Oh that's great! I really forgot about h2. Thank you! David Pollak: On Sun, Sep 20, 2009 at 5:18 PM, sergey srassok...@gmail.com wrote: Hi! My question is - does Lift support HSQL now? No and we have no plans to support HSQL. We support H2. Is there a particular reason that

[Lift] Re: FacebookRestApi examples?

2009-09-21 Thread Keith K
FYI -- I switched over to the java-based API and things seem smoother. (com.google.code.facebookapi). It sure is nice to have the ability to use java jars in scala... -Keith On Sep 18, 1:49 pm, Keith K quasike...@gmail.com wrote: Hi, Jon, Good to hear you're making progress.  I'm now able to

[Lift] You are not banned from this group!!

2009-09-21 Thread David Pollak
Folks, Google Groups has apparently sent messages to a number of folks posting to the Lift group telling them that they were banned. This is simply wrong and sucks for the people who received the messages. There has been one substantive poster who was so abusive on the Lift list that he was

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread glenn
David, What about using implicits? implicit def stringDataWrapper(s :String) = ... to apply the requisite trait. Is that doable? Glenn On Sep 21, 2:03 pm, glenn gl...@exmbly.com wrote: David, Does this mean you could write an entity class, like so: class User(val firstName: String, val

[Lift] Re: Concurrent Web Service Requests?

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 1:19 PM, espeed james.thorn...@gmail.com wrote: On Sep 21, 2:33 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Lift only uses event-based Actors for supporting CometActors. All parts of the standard HTTP request/response cycle (except for the CometActors)

[Lift] Re: javascript disabled on mobile phone browsers

2009-09-21 Thread koveen
Hi Marius, thank you for the reply. I guessed it would be possible to turn of all javascript (and now I know how to do it, thank you very much!!) but I'd hoped for some solution in between. I saw a presentation about Wicket in which the writer showed a solution in which an onclick element

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote: David, Does this mean you could write an entity class, like so: class User(val firstName: String, val lastName: String, val userName: String, val email: String, val password: String) with myTrait {...} and it would be useable

[Lift] Re: Session locking...

2009-09-21 Thread David Pollak
On Sun, Sep 20, 2009 at 5:37 AM, Timothy Perrett timo...@getintheloop.euwrote: Hmm - see what you mean Derek. It seems like it would be really helpful to have a addSetupFunction method on LiftSession - what are your thoughts? The session tear-down is well integrated with SessionVars. In

[Lift] Re: You are not banned from this group!!

2009-09-21 Thread Charles F. Munat
But were the sneakers any good? Chas. David Pollak wrote: Folks, Google Groups has apparently sent messages to a number of folks posting to the Lift group telling them that they were banned. This is simply wrong and sucks for the people who received the messages. There has been one

[Lift] Re: Pain Building Lift

2009-09-21 Thread runt
excellent, thanaks a lot. Case closed. On Sep 21, 1:27 am, Tim Nelson tnell...@gmail.com wrote: The appendices were not included in the printed book. You can get them online here:http://www.apress.com/book/downloadfile/4390 Also, they are included in the os version of the

[Lift] Re: Concurrent Web Service Requests?

2009-09-21 Thread espeed
On Sep 21, 4:29 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Well.. there's a Java way of doing exactly that: fork/join on a thread.   Seehttp://java.sun.com/javase/6/docs/api/java/lang/Thread.html But to weave this into the page rendering, there would be some work required on your

[Lift] Re: Session locking...

2009-09-21 Thread Timothy Perrett
Gah, I should have thought of that! This should do what I need - i'll give it a whirl... thanks chaps. Cheers, Tim The session tear-down is well integrated with SessionVars.  In your SessionVar, you call registerCleanupFunc: object myLock extends SessionVar[Box[String]](Empty) {  

[Lift] Re: Code Plugability in Lift

2009-09-21 Thread Timothy Perrett
I know we've discussed this before, but ultimately we'd like to wrap JPA with a Record front end somehow... Cheers, Tim On Sep 21, 10:42 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Sep 21, 2009 at 2:03 PM, glenn gl...@exmbly.com wrote: David, Does this mean you could

[Lift] Re: Concurrent Web Service Requests?

2009-09-21 Thread David Pollak
On Mon, Sep 21, 2009 at 3:19 PM, espeed james.thorn...@gmail.com wrote: On Sep 21, 4:29 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Well.. there's a Java way of doing exactly that: fork/join on a thread. Seehttp://java.sun.com/javase/6/docs/api/java/lang/Thread.html But to

[Lift] Re: You are not banned from this group!!

2009-09-21 Thread TylerWeir
I accidentally banned two people. I checked the list and thought I had corrected it. It appears I missed someone. Sorry for the mistake. On Sep 21, 5:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Google Groups has apparently sent messages to a number of folks posting to