[Lift] Re: Testing snippets that depend on a user logged in

2009-10-02 Thread etorreborre
Hi all, I added a specs version as well. Eric. On Oct 2, 2:37 pm, Bill Venners b...@artima.com wrote: Hi Ryan, David, Eric, I added a ScalaTest version to your wiki page: http://wiki.github.com/dpp/liftweb/how-to-unit-test-lift-snippets-wit... Eric you may want to add a specs version.

[Lift] Re: JsonResponse and Constructing a JsArray

2009-10-02 Thread Jeppe Nejsum Madsen
Peter Robinett pe...@bubblefoundry.com writes: Hi all, I'm getting the following error and I think I'm missing something very simple: error: type mismatch; found : List[net.liftweb.http.js.JsExp] required: net.liftweb.http.js.JsExp JsonResponse(JsObj(results -

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread Timothy Perrett
harryh, Are you using sitemap? It strikes me that if you do not want /mobile/ to be accessible, then don't include it in your sitemap, right? Cheers, Tim On Oct 2, 3:07 am, harryh har...@gmail.com wrote: I wanthttp://m.harryh.orgto visit a mobile version of my site so I added the following

[Lift] Re: Removing Scala Actors from Lift

2009-10-02 Thread martin
Hi Jonas, On Sep 30, 8:05 pm, Jonas Bonér jbo...@gmail.com wrote: Hi Martin and Philipp. Thanks for your email. What you are saying sounds great. I love Scala Actors and I know its an important thing that brings people over to Scala. I hope that I didn't offend you. You have done amazing

[Lift] Derby Identity column DDL and SQL insert scripts

2009-10-02 Thread Ewan
All Using Derby and have hit an issue when running some SQL scripts to insert data into a fresh mapper DB created by schemifier. Specifically when inserting records with the id column I get a violation: Error: Attempt to modify an identity column 'ID'. SQLState: 42Z23 ErrorCode: -1 i.e data

[Lift] log4j

2009-10-02 Thread Christopher Mason
Is log4j a hard dependency to break? It seems like you're using slf4j most places, but then have some hard deps for configuration. I'm using logback. How hard would it be for me to remove the log4j dep and replace with slf4j/logback. (I have logback already configured in my servlet

[Lift] RFC: Restructuring Lift Codebase [Round 2]

2009-10-02 Thread Indrajit Raychaudhuri
Folks, Following up from the previous round, I am summarizing what we discussed so far with an attempt to converge and move on to impl. Would be keen to have feedback and possibly arrive at some resolution on the outstanding items. (Meaty stuff below the module structure) liftweb - lift-core

[Lift] Re: log4j

2009-10-02 Thread Indrajit Raychaudhuri
You can of course use slf4j instead of log4j in your application. Quick steps: 1. Exclude log4j from dependency tree by adding exclusion filter in lift-webkit dependency. POM should look something like this: dependency groupIdnet.liftweb/groupId

[Lift] Re: log4j

2009-10-02 Thread Jeppe Nejsum Madsen
Christopher Mason cjma...@gmail.com writes: Is log4j a hard dependency to break? It seems like you're using slf4j most places, but then have some hard deps for configuration. I'm using logback. How hard would it be for me to remove the log4j dep and replace with slf4j/logback. (I have

[Lift] Re: JSONParse.parse and List[Any]

2009-10-02 Thread David Pollak
Peter, I'd suggest using the stuff in lift-json. It's a much faster, richer way to use JSON. Thanks, David On Thu, Oct 1, 2009 at 4:31 PM, Peter Robinett pe...@bubblefoundry.comwrote: Hi all, Building off of a previous thread[1], I'm trying to parse a POST request that contains JSON

[Lift] Re: RFC: Restructuring Lift Codebase [Round 2]

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 3:43 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Folks, Following up from the previous round, I am summarizing what we discussed so far with an attempt to converge and move on to impl. Would be keen to have feedback and possibly arrive at some resolution on

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread David Pollak
Hmmm... this is a bit like localization. What you really want is a flag that will choose alternate templates for each page. So, if you come to http://m.harryh.org/foo You want the foo_mobile.html template rather than the foo.html template (or foo_en.html or foo_es.html). So, the rest of the

[Lift] Re: Derby Identity column DDL and SQL insert scripts

2009-10-02 Thread David Pollak
Please open a ticket at http://github.com/dpp/liftweb/issues On Fri, Oct 2, 2009 at 2:57 AM, Ewan ehar...@gmail.com wrote: All Using Derby and have hit an issue when running some SQL scripts to insert data into a fresh mapper DB created by schemifier. Specifically when inserting records

[Lift] Re: RFC: Restructuring Lift Codebase [Round 2]

2009-10-02 Thread Indrajit Raychaudhuri
On Oct 2, 5:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Oct 2, 2009 at 3:43 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Folks, Following up from the previous round, I am summarizing what we discussed so far with an attempt to converge and move on to

[Lift] Re: RFC: Restructuring Lift Codebase [Round 2]

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 5:53 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: On Oct 2, 5:39 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Oct 2, 2009 at 3:43 AM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Folks, Following up from the previous

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-02 Thread David Pollak
You called the correct method, but you cannot assume that the method will always return a Full Box. There is not always a guaranteed context. On Thu, Oct 1, 2009 at 2:59 PM, rintcius rintc...@gmail.com wrote: Hmm, isn't there a direct way to get the ServletContext? I mean now that I think

[Lift] Re: Derby Identity column DDL and SQL insert scripts

2009-10-02 Thread Ewan
Done On Oct 2, 1:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Please open a ticket athttp://github.com/dpp/liftweb/issues On Fri, Oct 2, 2009 at 2:57 AM, Ewan ehar...@gmail.com wrote: All Using Derby and have hit an issue when running some SQL scripts to insert data into

[Lift] Re: Removing Scala Actors from Lift

2009-10-02 Thread Erik Engbrecht
David, I concur that while progress has been made my meta-issues have not been addressed. I think that effectively addressing using the current model and retaining something resembling API compatibility would be a huge task, and probably would have meant that very little newness from a

[Lift] Re: Testing snippets that depend on a user logged in

2009-10-02 Thread rstradling
Sweet!!! Thanks Bill for adding a ScalaTest version. I wanted to but just did not find the time yesterday. I also don't know ScalaTest very well but will be working with it shortly. On Oct 2, 12:37 am, Bill Venners b...@artima.com wrote: Hi Ryan, David, Eric, I added a ScalaTest version to

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-02 Thread rintcius
No, I think you mean there is not a guaranteed **session** (it is S.servletSession that returns a Box) I agree that once I go through the servletSession I should not just open_! the Box. But that's not the point I am trying to make. I think there should be a way to get the ServletContext without

[Lift] Re: Removing Scala Actors from Lift

2009-10-02 Thread Philipp
David, My immediate problem is:http://groups.google.com/group/liftweb/browse_thread/thread/b3783e24b... This has been a persistent problem with Scala Actors and I identified it last year in November or December. This is indeed supposed to be fixed in Scala 2.7.7 (to be released later

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 7:00 AM, rintcius rintc...@gmail.com wrote: No, I think you mean there is not a guaranteed **session** (it is S.servletSession that returns a Box) I agree that once I go through the servletSession I should not just open_! the Box. But that's not the point I am trying

[Lift] Re: Removing Scala Actors from Lift

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 6:58 AM, Philipp hall...@gmail.com wrote: David, My immediate problem is: http://groups.google.com/group/liftweb/browse_thread/thread/b3783e24b... This has been a persistent problem with Scala Actors and I identified it last year in November or December. This

[Lift] Re: Concurrent Web Service Requests?

2009-10-02 Thread Derek Chen-Becker
I'm a little late to the game, but my vote would be for keeping all lift-related attrs under the lift prefix. I don't feel like we need to attach any meaning the the lift prefix other than that it's something that lift will use. Derek On Thu, Oct 1, 2009 at 9:39 PM, marius d.

[Lift] Re: JsonResponse and Constructing a JsArray

2009-10-02 Thread Peter Robinett
Thanks, that did the trick. Peter On Oct 2, 11:15 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Peter Robinett pe...@bubblefoundry.com writes: Hi all, I'm getting the following error and I think I'm missing something very simple: error: type mismatch;  found   :

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread harryh
You want the foo_mobile.html template rather than the foo.html template (or foo_en.html or foo_es.html). So, the rest of the logic stays the same (page access, etc.) but the template selection is different.  Is this correct? No, not really. There isn't a 1:1 mapping of pages between the

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-02 Thread rintcius
Ok hopefully better phrased: It's quite possible that there is no session, while there is a ServletContext. The context of the request is going to depend on how the current session is instantiated. I don't get that. Quote from

[Lift] Re: JSONParse.parse and List[Any]

2009-10-02 Thread Peter Robinett
Thanks, David. Unfortunately, I get errors that net.liftweb.json does not exist. I imagine this is a configuration problem with my pom.xml, which is here: http://gist.github.com/199860. Could you or someone else conversant in Maven give me some tips to how to make sure I get lift-json? Thanks,

[Lift] Re: Removing Scala Actors from Lift

2009-10-02 Thread Philipp
David, Philipp did the 2.7.4 release which did not address the issue.  The 2.7.5 release was supposed to address the issue, but the use of LiftActorsmasked the issue until the above issue was raised.  I left my 2.7.5 related discussions with Philipp with the impression that the

[Lift] Extending Session Expiry

2009-10-02 Thread Timothy Perrett
Guys, Im building an application that works with Twitter OAuth - in order to do that, i make requests to twitter and get various tokens and hold them in a session var. However, it appears (looking at my logs) that when the user is bounced out to twitter.com for the authentication the session in

[Lift] Re: JSONParse.parse and List[Any]

2009-10-02 Thread Tim Nelson
Add this below the lift-core dependency: dependency groupIdnet.liftweb/groupId artifactIdlift-json/artifactId version1.1-SNAPSHOT/version /dependency Tim On Fri, Oct 2, 2009 at 11:17 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, David. Unfortunately, I get errors that

[Lift] Re: Db.addLogFunc

2009-10-02 Thread Derek Chen-Becker
The refactored logging (supporting both Java 5 and 6) has been checked into master. I built it on my machine with both JDK1.5 and JDK1.6 JVMs and everything built. Derek On Mon, Sep 28, 2009 at 1:47 PM, David david.b...@gmail.com wrote: Whoops, I take it back, not sure what happened earlier,

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread Derek Chen-Becker
Are they essentially two independent apps in terms of templates and snippets? That seems like you just want a virtual host via nginx or some other web server. Derek On Fri, Oct 2, 2009 at 10:03 AM, harryh har...@gmail.com wrote: You want the foo_mobile.html template rather than the foo.html

[Lift] Re: JSONParse.parse and List[Any]

2009-10-02 Thread Derek Chen-Becker
As the guy that wrote (and still maintains) the JSON Parser in the Scala core lib, I second David's opinion. The Scala JSON parser was intended to do two things: 1. Show how to write parsers using the combinator library 2. Be a functional parser of JSON The stuff that Joni is doing doesn't do

[Lift] Re: Nested 'react'

2009-10-02 Thread Jonas Bonér
FWIW, here is the documentation for Akka's AMQP module: http://wiki.github.com/jboner/akka/reference-amqp Let me know if you feel that you would like to have things behave differently or is missing some stuff in the API (it's currently work-in-progress). /Jonas 2009/10/2 David Pollak

[Lift] Re: log4j

2009-10-02 Thread Christopher Mason
So, is this support only present post 1.0.2? Cause in 1.0.2 it seems like log4j symbols are referenced before my Boot.boot() gets called (see below). Also, what do you mean by Configure slf4j to use Slf4jLogBoot (doc says Note that slf4j back-end should be configured previously to use

[Lift] Re: a question about host based url rewriting

2009-10-02 Thread harryh
Are they essentially two independent apps in terms of templates and snippets? Yes. Though they share the same model (+ some random extra library code). That seems like you just want a virtual host via nginx or some other web server. I could go that route. But then I have another app to

[Lift] Re: Started integrating lift in a scala+spring project. Feedback?

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 9:17 AM, rintcius rintc...@gmail.com wrote: Ok hopefully better phrased: It's quite possible that there is no session, while there is a ServletContext. The context of the request is going to depend on how the current session is instantiated. I don't get that. Quote

[Lift] Lift compiled against 2.7.7.RC1

2009-10-02 Thread David Pollak
Folks, I have pushed a branch of Lift that compiles against Scala 2.7.7.RC1 to the Lift repository (dpp_wip_277). Indrajit, please do Hudson magic such that there are Maven artifacts that people can test against and send out changes that people will need to make to their pom.xml file to test

[Lift] Re: Lift compiled against 2.7.7.RC1

2009-10-02 Thread Kris Nuttycombe
Hi, David, Is the RC available from a public Maven repo, or did you have to install it locally? Kris On Fri, Oct 2, 2009 at 4:27 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I have pushed a branch of Lift that compiles against Scala 2.7.7.RC1 to the Lift repository

[Lift] Re: Lift compiled against 2.7.7.RC1

2009-10-02 Thread David Pollak
On Fri, Oct 2, 2009 at 3:45 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: Hi, David, Is the RC available from a public Maven repo, or did you have to install it locally? It is available in the scala-tools.org repo. EPFL has done this RC by the book so far, which is reassuring to me.

[Lift] Re: Extending Session Expiry

2009-10-02 Thread David Pollak
Tim, By default, Lift sessions last as long as the contain keeps sessions alive (usually 15-30 minutes). LiftSession.inactivityLength determines when the session gets timed out, unless the container times it out first. Thanks, David On Fri, Oct 2, 2009 at 9:58 AM, Timothy Perrett

[Lift] Re: Extending Session Expiry

2009-10-02 Thread Timothy Perrett
This explains why I'm not seeing the issue in dev mode with mvn jetty:run I'm deploying to embedded winstone so it's quite possible the sessions are being reaped by winstone itself. I'll investgate and report back :-) Cheers Tim Sent from my iPhone On 3 Oct 2009, at 00:17, David Pollak

[Lift] Need two classes to inherit from one model, database design and view issues

2009-10-02 Thread Dave
Hi all- I posted this on stackoverflow but I figure its probably relevant here too. I checked out the post with David and Steve Yen corresponding but I am still at a loss and am curious if any progress has been made in this direction. So, here goes. I am creating a website which will need

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