[Lift] You guys rock!

2009-03-10 Thread Alex Boisvert
Between Scala and Lift, ScalaCheck and Specs, Eclipse and Buildr, Jetty and JavaRebel, it's amazing to see how far the tools have evolved in the 2 years I've been following Scala. I had my epiphany today while 'upgrading' a small internal time-tracking webapp. Code, save, refresh... BAM! There

[Lift] Re: More docs?

2009-03-10 Thread TylerWeir
Derek, Marius and I are writing a book for Lift: http://github.com/tjweir/liftbook/tree/master and http://cloud.github.com/downloads/tjweir/liftbook/master-20090309.pdf On Mar 10, 3:07 pm, Heiko Seeberger wrote: > I recently worked through "Starting with Lift". Great to have such a > mature intr

[Lift] access object field after snippet form submission

2009-03-10 Thread DavidV
In the webapp I'm working on, I have three separate forms (snippets) linked to three separate objects. I would like to maintain a link between the objects through ID fields, since all three forms contain information pertinent to one individual record. The problem is, after I submit the first for

[Lift] More docs?

2009-03-10 Thread Heiko Seeberger
I recently worked through "Starting with Lift". Great to have such a mature introduction => Thanx! Now I would like to dig a little deeper and I wonder if there is more documentation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Timothy Perrett
For sure ­ im not sure how to write a spec test for something like this? Is there anything I can use / copy as a starting point? Cheers, Tim On 10/03/2009 17:11, "David Pollak" wrote: > > They do have S and LiftSession. > > The case null => guard should catch a null. > > Tim... can you add

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread David Pollak
On Tue, Mar 10, 2009 at 4:58 PM, Derek Chen-Becker wrote: > Actually, I'm trying to remember whether COMET actors have an associated > LiftSession (and therefore access to S)... They do have S and LiftSession. The case null => guard should catch a null. Tim... can you add a test to the code th

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Derek Chen-Becker
Can you see what the value of S.request is in your code? That's called by the locale def: def locale: Locale = LiftRules.localeCalculator(request.map(_.request)) The request.map(...) should either be an Empty or Full(HttpServletRequest). I can't find anything obvious that would get a null into a

[Lift] Re: Is there a LiftConsole that load your models for development/testing?

2009-03-10 Thread Ikai Lan
Yes, that looks like it. I'll give it a whirl. Thanks! --~--~-~--~~~---~--~~ 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 group, send e

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Timothy Perrett
Good question I hadn¹t thought about it like that. IMO, they need something ­ as if you want to localize it makes it nearly impossible otherwise... Cheers, Tim On 10/03/2009 16:58, "Derek Chen-Becker" wrote: > Actually, I'm trying to remember whether COMET actors have an associated > Lift

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Derek Chen-Becker
Actually, I'm trying to remember whether COMET actors have an associated LiftSession (and therefore access to S)... On Tue, Mar 10, 2009 at 11:39 AM, Derek Chen-Becker wrote: > Somewhere request is being set to Full(null) instead of Empty, I would > suspect. Otherwise, the flatMap would work corr

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Derek Chen-Becker
Somewhere request is being set to Full(null) instead of Empty, I would suspect. Otherwise, the flatMap would work correctly. Let me see if I can find anything. Derek On Tue, Mar 10, 2009 at 11:16 AM, Tim Perrett wrote: > > Guys, > > I think i might have just found a bug in the > defaultLocaleCal

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Timothy Perrett
Actually, probally more like this (which actually compiles!): def defaultLocaleCalculator(request: Box[HttpServletRequest]): Locale = request.flatMap(r => { tryo(r.getLocale()) match { case x @ Full(_) => x case _ => Empty } }).openOr(Locale.getDefault()) Cheers, Tim On

[Lift] Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Tim Perrett
Guys, I think i might have just found a bug in the defaultLocaleCalculator... By simply adding S.?("mykey") to a comet actor, it bombs in spectacular style. I worked the bug back as it was originally getting an NPE from my code, so I shoved everything into boxes - that appears to have now moved

[Lift] Upgraded JPA Demo site

2009-03-10 Thread Derek Chen-Becker
I've modified the demo site to use ScalaJPA for the JPA framework (cuts down a lot on boilerplate code). It's on the wip-dcb-jpa-scalajpa branch. Any objections before merging? Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Adding MappedDecimal to Mapper?

2009-03-10 Thread Derek Chen-Becker
Done. On Tue, Mar 10, 2009 at 5:37 AM, TylerWeir wrote: > > Considering that we use it for PocketChange, it would make life a bit > easier for us. > > We haven't run into any issues yet either so, it would be awesome if > it was in Lift proper. > > > On Mar 10, 4:47 am, David Pollak > wrote: >

[Lift] Re: Is there a LiftConsole that load your models for development/testing?

2009-03-10 Thread TylerWeir
I have lift built from the github repo, typically like "mvn clean install" Then from your project you can run "mvn scala:console - DmainConsole=LiftConsole" You'll get a scala REPL and you can then import the things you'd like: import net.liftweb.mapper import net.liftweb.mapper._ And I then pu

[Lift] Re: Adding MappedDecimal to Mapper?

2009-03-10 Thread TylerWeir
Considering that we use it for PocketChange, it would make life a bit easier for us. We haven't run into any issues yet either so, it would be awesome if it was in Lift proper. On Mar 10, 4:47 am, David Pollak wrote: > Go for it. > > On Tue, Mar 10, 2009 at 12:26 AM, Derek Chen-Becker > wrote:

[Lift] AJAX Experience Call for papers!

2009-03-10 Thread Josh Suereth
I really think a general overview of lift architecture and perhaps a few shiny app screenshots/demos would really be a great thing to see at this conference! http://ajaxian.com/archives/share-your-knowledge-at-the-ajax-experience-2 --~--~-~--~~~---~--~~ You receive

[Lift] Re: SQL Server Errors

2009-03-10 Thread Timothy Perrett
Is someone able to take ownership of these tickets? Cheers, Tim On Mar 9, 5:52 pm, Tim Perrett wrote: > Guys, > > Just logged a couple of bugs for SQL Server drivers: > > http://liftweb.lighthouseapp.com/projects/26102/tickets/18-sql-server... > > http://liftweb.lighthouseapp.com/projects/26102

[Lift] Re: Lift-friendly Web Hosting

2009-03-10 Thread Timothy Perrett
Generally, we run our own servers with root access and configure Jetty, or another servlet container to host the lift app. Its no different than hosting any other JVM based web application in that sense. Cheers, Tim > On Tue, Mar 10, 2009 at 1:03 AM, Jeff Chen wrote: > > > Any suggestion/experi

[Lift] Re: Netbeans

2009-03-10 Thread Caoyuan
Server is up now. On Tue, Mar 10, 2009 at 4:14 PM, Caoyuan wrote: > My server is down for maintainess, hope to up in this weekend. > > On Tue, Mar 10, 2009 at 1:21 PM, wiallia...@gmail.com > wrote: >> >> Oh, yes I did not elaborate, as I did say before I found this page, if >> you look at the b

[Lift] Re: Adding MappedDecimal to Mapper?

2009-03-10 Thread David Pollak
Go for it. On Tue, Mar 10, 2009 at 12:26 AM, Derek Chen-Becker wrote: > Any objections? The current code is on the wip-dcb-decimal-maprec branch. > > Derek > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow

[Lift] Re: Lift-friendly Web Hosting

2009-03-10 Thread David Pollak
I use CalPop for my hosting. They're very reasonably priced, but you do have to do some non-trivial sys-admin work. On Tue, Mar 10, 2009 at 1:03 AM, Jeff Chen wrote: > Any suggestion/experience on a lift-friendly web hosting service? Thanks. > > > > -- Lift, the simply functional web framewor

[Lift] Re: Netbeans

2009-03-10 Thread Caoyuan
My server is down for maintainess, hope to up in this weekend. On Tue, Mar 10, 2009 at 1:21 PM, wiallia...@gmail.com wrote: > > Oh, yes I did not elaborate, as I did say before I found this page, if > you look at the bottom it has a link specifically for lift, > http://blogtrader.net/page/dcaoyu

[Lift] Re: Netbeans

2009-03-10 Thread wiallia...@gmail.com
Oh, yes I did not elaborate, as I did say before I found this page, if you look at the bottom it has a link specifically for lift, http://blogtrader.net/page/dcaoyuan/entry/run_debug_lift_web_app ´all points point to here´ as it were, unfortunately it has been taken down. I did a bit of searching

[Lift] Is there a LiftConsole that load your models for development/testing?

2009-03-10 Thread Ikai Lan
The Scala console is pretty handy, but I was wondering if there was such a thing as a Lift console? That is, a program that allows a developer to open their Lift objects from the command line and play with them? --~--~-~--~~~---~--~~ You received this message becaus

[Lift] Lift-friendly Web Hosting

2009-03-10 Thread Jeff Chen
Any suggestion/experience on a lift-friendly web hosting service? Thanks. --~--~-~--~~~---~--~~ 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