[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread eric cs
Hey Spencer, cool stuff. I wish you could do a screencast or a tutorial on how did u do it. I think we need some hands on tutorial/screencast. Thanks. On Jul 6, 12:36 am, Spencer Uresk wrote: > Hey all, > > I hope this isn't considered spammy, but I wanted to send out a link   > to a new website

[Lift] "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
I have two webapps, hosted on the same server: http://lsug.org/main/ http://lsug.org/stage/ Problem is, the menu works just fine on the stage site, but not on the main site. Which is odd, as these sites should be identical. I just renamed stage.war to main.war and let tomcat auto-deploy it The s

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread marius d.
First of all, thank you for you kind words. Your website is just great but I'd recommend publishing the link on sc...@listes.epfl.ch as well. As far as Lift & Scala goes, yes Lift in may respects requires understanding the Scala language and because Scala comes with new things/concepts a little b

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Timothy Perrett
Wow, that really is strange! Can you please post your sitemap? What version of Lift are you using? Cheers, Tim On Jul 6, 8:17 am, Kevin Wright wrote: > I have two webapps, hosted on the same > server:http://lsug.org/main/http://lsug.org/stage/ > > Problem is, the menu works just fine on the s

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Timothy Perrett
Yeah if you have a designer which would be prepared to donate their time for free then we would very much like to speak with them! Our problem is getting creative time for free (as we are obviously a not for profit outfit). If we can get the design done (even just PSD or whatever) then we im more

[Lift] Re: How to test/TDD lift apps?

2009-07-06 Thread Jeppe Nejsum Madsen
On Fri, Jul 3, 2009 at 6:43 PM, David Pollak wrote: > Jeppe, > > Once I check in some code (in about 20 minutes), if you run Lift in Test > mode (-Drun.mode=test), forms, etc. will have stable names which makes > testing easier. Thanks. I just tried this, and it seem something is not correct. Her

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Tobias Daub
Don't know if this is an accident, but since yesterday I'm getting this error too (and I didn't touched Boot.scala)? > I have two webapps, hosted on the same server: > http://lsug.org/main/ > http://lsug.org/stage/ > > Problem is, the menu works just fine on the stage site, but not on the

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
sitemap is defined here: http://github.com/kevinwright/lsug-website/blob/b3141386cb019cf11fc7eb985cce11e204086139/src/main/scala/bootstrap/liftweb/Boot.scala using Lift 1.1-M1 There was some issue with 1.1-SNAPSHOT when I tried it about a week ago, I forget what exactly On Mon, Jul 6, 2009 at 8

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
And if you deploy only http://lsug.org/main/ does it work correctly? Br's, Marius On Jul 6, 10:17 am, Kevin Wright wrote: > I have two webapps, hosted on the same > server:http://lsug.org/main/http://lsug.org/stage/ > > Problem is, the menu works just fine on the stage site, but not on the ma

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
FWIW, I've had this error for a while now. It looked like the virtual host config was guilty at one point, and I also went through a phase of thinking that it only occurred if I accessed the page via jk2 before hitting tomcat directly (still not ruled that one out) Various restarts and other bits

[Lift] Anyone out there using SBT?

2009-07-06 Thread Timothy Perrett
Hey Guys, Is anyone out there using SBT for their lift projects? if so, how are you finding it? Cheers, Tim --~--~-~--~~~---~--~~ 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: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
Interesting... yes it does On Mon, Jul 6, 2009 at 9:51 AM, marius d. wrote: > > And if you deploy only http://lsug.org/main/ does it work correctly? > > Br's, > Marius > > On Jul 6, 10:17 am, Kevin Wright > wrote: > > I have two webapps, hosted on the same server: > http://lsug.org/main/http:/

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Kevin Wright
Single Bullet Theory, or Swedish Bikini Team ? On Mon, Jul 6, 2009 at 10:07 AM, Timothy Perrett wrote: > > Hey Guys, > > Is anyone out there using SBT for their lift projects? if so, how are > you finding it? > > Cheers, Tim > > > --~--~-~--~~~---~--~~ You receiv

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Ellis
Hi Eric, Here are a few comments and suggestions. - Honestly, I don't think that lift and scala are the right places for you to start out. The systems are very powerful, but relatively new, and so they are still geared towards more experienced programmers. - You'll need more than a month to bec

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Ellis
Nice. :) On Jul 6, 6:36 am, Spencer Uresk wrote: > Hey all, > > I hope this isn't considered spammy, but I wanted to send out a link   > to a new website I built using Lift and share my experiences as a   > Scala and Lift newbie. > > I've played around with Scala off and on for over a year now,

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Timothy Perrett
No, I was thinking more about Simple Build Tool ;-) http://code.google.com/p/simple-build-tool/ Cheers, Tim On Jul 6, 10:09 am, Kevin Wright wrote: > Single Bullet Theory, or Swedish Bikini Team ? --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Viktor Klang
I say: Go Eric go! Nothing is impossible with the right attitude! On Mon, Jul 6, 2009 at 12:17 PM, Timothy Perrett wrote: > > Ellis, > > Im afraid I disagree with you - Eric does not state what type of > "eComerce" application he wants to create... IMO, this is very > subjective. Lift ships out

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Eric Bowman
To this I would add: The way to learn to program, is to program. It takes a lot of time, and a lot of hard work. Reading books is good, and necessary, but it's not enough. Also, Lift really uses Scala to the max, so if you only have 30 days, I would plan to spend the first half just becoming g

[Lift] Mapper: How to clone object fields?

2009-07-06 Thread Jeppe Nejsum Madsen
Hi, What is the best way to copy values from one mapped object to another (of the same type). The code below seems to work but I was wondering if there's a better way? def insertOrUpdate(v:Vehicle) = Vehicle.find(By(vin, v.vin.is)) match { case Full(existing) => { existing.getSin

[Lift] Re: How to test/TDD lift apps?

2009-07-06 Thread Naftoli Gugenhem
I would like if in general you would be able to specify input names and have lift use those. Maybe FuncHolders could take an optional param? - Jeppe Nejsum Madsen wrote: On Fri, Jul 3, 2009 at 6:43 PM, David Pollak wrote: > Jeppe, > > Once I check in some co

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Timothy Perrett
Ellis, Im afraid I disagree with you - Eric does not state what type of "eComerce" application he wants to create... IMO, this is very subjective. Lift ships out of the box with PayPal integration - one could say that a site which allows a user to pay via paypal is eCommerce... would you disagree

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
Marius, should I be thinking that you have a theory on this one? On Mon, Jul 6, 2009 at 9:55 AM, Kevin Wright wrote: > Interesting... yes it does > > > On Mon, Jul 6, 2009 at 9:51 AM, marius d. wrote: > >> >> And if you deploy only http://lsug.org/main/ does it work correctly? >> >> Br's, >> M

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
Looks like there is an "influence" there but it should really not be since each web application is loaded by a separate classloader. 1. Do you have any jars that these webapps are sharing? 2. If you put some logs in Boot do you see the logs correctly? ... If you call LiftRules.siteMap after you s

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
Oh btw. did you explicitly set the context path for each app ? On Jul 6, 2:09 pm, "marius d." wrote: > Looks like there is an "influence" there but it should really not be > since each web application is loaded by a separate classloader. > > 1. Do you have any jars that these webapps are sharing

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
I agree with your thinking that this looks like a classloading issue, but haven't (yet) tried any clever optimisations here :) The only shared jars are those supplied by default via java/tomcat. When I get a moment though, it might be worth checking for the usual culprits (commons-logging, etc).

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread TylerWeir
@spencer: Add a comment to this thread: http://www.nabble.com/Scala-programmers-in-US--td24331451.html I registered scala-jobs.com (it appears someone is basically squating on scalajobs.com) thinking that I would put together a job board as well. If you don't mind, I'll point scala-jobs.com to

[Lift] Mapper: How to find/by with case insensivity?

2009-07-06 Thread Jeppe Nejsum Madsen
Hi, I'm currently doing find(By(brand, b),BySql[VehicleType]("upper(series)=? and upper(model)=?", IHaveValidatedThisSQL("JNM", "090706"), s.toUpperCase, m.toUpperCase)) since series & model should be compared case insensitively. But it would seem nicer if I could somehow do find(By

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
Well I just deployed 2 different Lift apps in jetty and everything is working fine. Here is wild thought can you try changing the package names. I know it shouldn't matter but this is an awkward case still. Br's, Marius On Jul 6, 2:32 pm, Kevin Wright wrote: > I agree with your thinking th

[Lift] Rendering breakdown on Safari

2009-07-06 Thread Kjetil Valstadsve
Hi folks, I have an obscure problem with rendering on Safari (both 3 and 4). I get the same behavior using 1.1-M1 and 1.1-M3. When I initiate any ajaxy traffic, be it a text field, a checkbox or a drop-down, the entire content area literally collapses onto itself. >From what I can tell it happen

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
Thanks for your ongoing efforts :) If you want to test with the LSUG app, feel free to grab it from github: http://github.com/kevinwright/lsug-website/tree/master Just to clarify, I'm working with continuous deplyment here. The stage site gets auto-deployed following a successful hudson build (

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread marius d.
Still ... we need to get to the bottom of this ... I made a dummy app and deploy it under main.war and stage.war ... again everything works correctly (I'm on Windows currently). Can you make a minimalistic app (with no DB) where this problem reproduces and send it over? ... Can you reproduce this

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread Kevin Wright
I did see this problem running on localhost on my windows box at home. Not tried removing the DB yet, although that is scheduled to go. On Mon, Jul 6, 2009 at 1:20 PM, marius d. wrote: > > Still ... we need to get to the bottom of this ... I made a dummy app > and deploy it under main.war and

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread eric cs
Guys, Thank you very much for all your answers. Having a community like that, I know is half way there for anyone. I am very very very eager to learn, that's my number one priorite right now and the e-commerce is an example to work with some real application and apply logic and a database to learn

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Mark Essel
If there was a way I could get an upload of your recent scala/lift knowledge I'd be much appreciated. Any chance you'll create some tutorials on the making of Spencer? I signed up on the site. I'm working on a project that matches social media status, user profile history, and eventually their inf

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread David Pollak
On Sun, Jul 5, 2009 at 9:36 PM, Spencer Uresk wrote: > > Hey all, > > I hope this isn't considered spammy, Not at all. Sharing experience is very, very helpful to all! Plus I'm sure a lot of folks would have even more interest in Lift is money was attached... so a job-board is a wicked cool t

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread James Matlik
You could reach out to web design forums (they must exist), universities and the open source community at large via a competition of some kind. The reward could simply be bragging rights and credit on the contributors page. A production web site design for a university student would be a good resu

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread yiguang hu
The tutorials on liftweb website is a good starting point. The definite guide liftweb book is a good resource if you need something that is more thorough and organized. Online presentations is a quick way to get start and learn the concept. On Mon, Jul 6, 2009 at 9:14 AM, eric cs wrote: > > Gu

[Lift] Re: Mapper: How to clone object fields?

2009-07-06 Thread Jeppe Nejsum Madsen
On Mon, Jul 6, 2009 at 12:23 PM, Jeppe Nejsum Madsen wrote: > Hi, > > What is the best way to copy values from one mapped object to another > (of the same type). The code below seems to work but I was wondering if > there's a better way? And just for future reference, the previous example didn't

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 2:07 AM, Timothy Perrett wrote: > > Hey Guys, > > Is anyone out there using SBT for their lift projects? if so, how are > you finding it? I plan to play with an SBT based project later this week. > > > Cheers, Tim > > > -- Lift, the simply functional web framework htt

[Lift] Re: Mapper: How to find/by with case insensivity?

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 4:58 AM, Jeppe Nejsum Madsen wrote: > > Hi, > > I'm currently doing > > find(By(brand, b),BySql[VehicleType]("upper(series)=? and upper(model)=?", > IHaveValidatedThisSQL("JNM", "090706"), s.toUpperCase, m.toUpperCase)) > > since series & model should be compared case insen

[Lift] Re: Rendering breakdown on Safari

2009-07-06 Thread David Pollak
I have not seen this problem (although I've seen a couple of other Safari 4 related issues... especially in SVG). If you want to privately send me a copy of your project I'll see if I can reproduce the issue. If your project is proprietary, I can sign an NDA. If there is an issue with Lift and S

[Lift] Re: Binding based on attributes

2009-07-06 Thread Nolan Darilek
On 07/03/2009 12:01 PM, David Pollak wrote: > > SHtml.text(defaultValue, func, "class" -> "fruitbat", "style" -> > "width: 300px") > Right, this is the classic binding case, but I don't see how to get the element being bound so that instead of setting its value to a variable, I could set a map k

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Spencer Uresk
Thanks, Marius. The design was created by my designer - my design skills are unbelievably terrible. I don't think she'd do the Lift site for free (the one for the job site cost me a few hundred bucks), but if you send me details of what you want, I may be able to work something out. No promises t

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Spencer Uresk
Tyler, Thanks, will do. Choosing a good domain that isn't taken is one of the hardest parts of building a new web application for me, and seeing good domains being held onto without being used is particularly frustrating. I was disappointed to see that scalajobs.com was already taken, although i

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Spencer Uresk
Mark, Yes, I absolutely plan on writing some short tutorials once I feel a little more comfortable with my knowledge in the area. I could also release the code once I get it cleaned up a bit, if people think that it would be useful or interesting having it as another Lift sample. - Spencer On J

[Lift] Re: Rendering breakdown on Safari

2009-07-06 Thread Kjetil Valstadsve
It's fairly generic, but I can't ship any of our data. So I will fork it and provide a copy that exposes the issue with some mock data. Kjetil On Jul 6, 4:12 pm, David Pollak wrote: > I have not seen this problem (although I've seen a couple of other Safari 4 > related issues... especially in S

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread TylerWeir
n8's dispatch uses it nicely: http://databinder.net/dispatch/About On Jul 6, 10:09 am, David Pollak wrote: > On Mon, Jul 6, 2009 at 2:07 AM, Timothy Perrett > wrote: > > > > > Hey Guys, > > > Is anyone out there using SBT for their lift projects? if so, how are > > you finding it? > > I plan to

[Lift] Using AJAX calls in Lift Snippets

2009-07-06 Thread Gonzalo N
Hello! I am having a problem with a javascript function that creates a new textarea from a snippet. I am using the Lift 1.0-SNAPSHOT version and the Scala version 2.7.4. Basically, what I am doing is creating a ajaxButton in a snippet, that calls a JavaScript function to create new textareas, lik

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Timothy Perrett
This is exactly why I've started looking at it because I was generally impressed by the way he uses it. Maven is totally the right tool for lift project management, and im not suggesting moving that or anything, but im considering having a lift archetype that uses SBT so people have the choice w

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
On Jul 6, 5:44 pm, Gonzalo N wrote: > Hello! > > I am having a problem with a javascript function that creates a new > textarea from a snippet. I am using the Lift 1.0-SNAPSHOT version and > the Scala version 2.7.4. > Basically, what I am doing is creating a ajaxButton in a snippet, that > call

[Lift] Trigger object creation to send message to actor

2009-07-06 Thread Tobias Daub
Hi List, I wanna send a message to an Actor everytime a new "row" is created in a specific table. The Actor is responsible to refresh a HTML page and display all the items from the table. How do I do that? thanks. --~--~-~--~~~---~--~~ You received this mess

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread Gonzalo N
Hi. Probably I didn't explain well and I am sorry for that. I've created a simple form in Lift processed via a snippet that contains 3 form attributes: function_definition(a textarea), buttonFunDef(ajaxButton) and save(submit) In the HTML file I made the call to those attributes of the snippet, in

[Lift] Lift application startup problem:failed LiftFilter

2009-07-06 Thread Mike Maul
After making changes to move from SNAPSHOT-1.0 to SHAPSHOT-1.1 maven is refusing to start the LiftFilter Also since the 'loan' patterns seemed to go away is the LiftSession.onBeginServicing/endServicing an approiate place for instantiating my JPA entity manager? 2009-07-06 10:42:00.703::WARN: f

[Lift] Re: using file-based data storage in Lift app

2009-07-06 Thread glenn
Thanks all for your comments on this issue. Based on what you've written, it seems that normal file io works fine in Lift as long as you don't try to affect the exploded war file in the process. In my case, I just simply used XML.loadFile and XML.saveFull from scala directly, pointing to a directo

[Lift] Re: Lift application startup problem:failed LiftFilter

2009-07-06 Thread David Pollak
You have to make sure you update your pom.xml file to use Scala 2.7.4 with Lift 1.1 Thanks, David On Mon, Jul 6, 2009 at 8:17 AM, Mike Maul wrote: > > After making changes to move from SNAPSHOT-1.0 to SHAPSHOT-1.1 > maven is refusing to start the LiftFilter > > Also since the 'loan' patterns s

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
Eric, It seems that you want to hike the Appalachain Trail at marathon speeds. I'm not sure it can be done. It took me 18 months with Scala before I felt comfortable with it and my learning curve with new languages is

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
Well this definition of ajaxButton that you use you are passing indeed the AddFunctionDefinition function. But this function doesn;t do any Ajax call. It receives a parameter (that is not declared btw) which is essentially a function. You have to manually call this function in order for the Ajax c

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Wilson MacGyver
I would echo David's comment. Scala is a powerful language with high complexity budget. I think it's important to learn the fundamentals of Scala first and build on top of it. On Mon, Jul 6, 2009 at 11:52 AM, David Pollak wrote: > Eric, > > It seems that you want to hike the Appalachain Trail at

[Lift] Re: How to test/TDD lift apps?

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 1:34 AM, Jeppe Nejsum Madsen wrote: > > On Fri, Jul 3, 2009 at 6:43 PM, David > Pollak wrote: > > Jeppe, > > > > Once I check in some code (in about 20 minutes), if you run Lift in Test > > mode (-Drun.mode=test), forms, etc. will have stable names which makes > > testing ea

[Lift] Re: How to test/TDD lift apps?

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 3:23 AM, Naftoli Gugenhem wrote: > > I would like if in general you would be able to specify input names and > have lift use those. Maybe FuncHolders could take an optional param? That would cause more problems than it would solve. The names are the GUIDs that bind the se

[Lift] Re: "No Navigation Defined" in menu snippet

2009-07-06 Thread David Pollak
My guess is that it's a corrupt database problem and there's an exception being thrown during the processing of Boot.scala If you've got two apps on the same app server and they are both using Derby, it's likely that they are trying to share the same Derby files which is causing the corruption. S

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Mark Harrah
> Maven is totally the right tool for lift project management, and im not > suggesting moving that or anything, but im considering having a lift > archetype that uses SBT so people have the choice when developing their > applications. You might have already seen this, but Nathan and I did some wo

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Rudi Engelbrecht
Hi Spencer Well done on a nice web site with a great look and feel. I am also interested to hear how you went about implementing it in Lift/Scala - please let us know when you have code / how-to / guide etc. to share. Kind regards Rudi On 06 Jul 2009, at 4:26 PM, Spencer Uresk wrote: >

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread eric cs
David, awesome ideas you got there,thanks, about posting my improvements and stuff, pretty unique really and it will helps for future programers as well specially coming raw into Scala. I totally agree with you, maybe Scala is too much for a new guy who doesn't know some basic and advanced concept

[Lift] Re: Scala job site written in Lift + a newcomer's experience

2009-07-06 Thread Timothy Perrett
This is a great idea IMO - if you had any suggestions on forums or such to reach out to that would be great! Cheers, Tim On Jul 6, 2:34 pm, James Matlik wrote: > You could reach out to web design forums (they must exist), universities and > the open source community at large via a competition o

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Wilson MacGyver
I would like to suggest David's "Beginning Scala" book. It's written for new comer. And has lots of examples that you can play with using Scala's REPL. On Mon, Jul 6, 2009 at 1:22 PM, eric cs wrote: > > David, awesome ideas you got there,thanks, about posting my > improvements and stuff, pretty u

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 10:41 AM, Wilson MacGyver wrote: > > I would like to suggest David's "Beginning Scala" book. It's written > for new comer. And has lots of examples that you can play with > using Scala's REPL. Heh... you beat me to the suggestion... ;-) Chapters 2-5 of *Beginning Scala* s

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Wilson MacGyver
Wouldn't Ch6 on actors be useful too? But yea, Ch7 would be too much. On Mon, Jul 6, 2009 at 1:59 PM, David Pollak wrote: > > > On Mon, Jul 6, 2009 at 10:41 AM, Wilson MacGyver > wrote: >> >> I would like to suggest David's "Beginning Scala" book. It's written >> for new comer. And has lots of e

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 11:03 AM, Wilson MacGyver wrote: > > Wouldn't Ch6 on actors be useful too? Not for getting to the To Do app. In this case, I think less is more... learn enough Scala to understand how to do basic Lift stuff. Get success with building a Lift app. Go back to Chapter 6, le

[Lift] Lift upgraded to Scala 2.7.5 (**IMPORTANT**)

2009-07-06 Thread David Pollak
Folks, I did a stress test of the 2.7.5 Scala actors over the weekend. There are no gross memory leaks, so I updated Lift to use 2.7.5. For anyone using 1.1-SNAPSHOT, please update your pom.xml to use Scala 2.7.5 Thanks, David -- Lift, the simply functional web framework http://liftweb.net B

[Lift] parameterizing a mapper query clause

2009-07-06 Thread Dano
Hello Lifters! I recently acquired the Lift book and saw a neat example of how to use a QueryParam() to setup a query which does date range checking. The code I am referencing is the dateClause expression in the Expense.scala file (pocketchange project). It looks like: val dateClause : Que

[Lift] Re: Lift upgraded to Scala 2.7.5 (**IMPORTANT**)

2009-07-06 Thread Timothy Perrett
Hey David, Have you push the change? It doesn't appear to be on Github... Cheers, Tim On Jul 6, 7:10 pm, David Pollak wrote: > Folks, > > I did a stress test of the 2.7.5 Scala actors over the weekend.  There are > no gross memory leaks, so I updated Lift to use 2.7.5. > > For anyone using 1.1

[Lift] Re: Lift upgraded to Scala 2.7.5 (**IMPORTANT**)

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 12:03 PM, Timothy Perrett wrote: > > Hey David, > > Have you push the change? It doesn't appear to be on Github... D'oh! Pushed now. > > > Cheers, Tim > > On Jul 6, 7:10 pm, David Pollak wrote: > > Folks, > > > > I did a stress test of the 2.7.5 Scala actors over the we

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Timothy Perrett
Thanks for the response mark. I've taken a good look at SBT and have been pretty impressed to be honest - its nice and clean. I really like the packaged jar which can "unpack" and then you have a fully working SBT project - that would make distribution very very nice indeed. However, after chatt

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Viktor Klang
I'd be very interested if you'd make a small writeup on your blog if you try it out Tim On Mon, Jul 6, 2009 at 10:40 PM, Timothy Perrett wrote: > > Thanks for the response mark. > > I've taken a good look at SBT and have been pretty impressed to be > honest - its nice and clean. > > I really like

[Lift] Re: Anyone out there using SBT?

2009-07-06 Thread Meredith Gregory
Tim, Scala-query uses SBT, but i've been able to incorporate it as a part of a maven-based project with 0 pain, by just dropping the project dir. So, it doesn't seem to get in the way, in this case. Best wishes, --greg On Mon, Jul 6, 2009 at 1:40 PM, Timothy Perrett wrote: > > Thanks for the r

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread Ellis
Tim, Eric, @Tim: > everyone has to start > somewhere and saying Lift is only appropriate for hardcore programmers > because its a new framework is wrong IMHO. Compared to certain other starting points, there are a lot of extra hurdles to overcome if you're going to attempt lift as your intro to

[Lift] MappedDecimal and nulls

2009-07-06 Thread Jeppe Nejsum Madsen
Hi, I seem to get errors when trying to read a MappedDecimal that is NULL in the db: Message: java.lang.NullPointerException net.liftweb.mapper.MappedDecimal$$anonfun$buildSetActualValue$1$$anonfun$apply$4.apply(MappedDecimal.scala:152) net.liftweb.mapper.MappedDecimal$$anonfun

[Lift] Re: parameterizing a mapper query clause

2009-07-06 Thread Derek Chen-Becker
Maybe I'm misunderstanding what you're attempting here, but I don't think that this will work. The major roadblock I see is that the SQL query strings are tied directly to a table name (e.g. "User.createdAt"), and therefore to a particular type. Off the top of my head, I think that you *could* writ

[Lift] Re: parameterizing a mapper query clause

2009-07-06 Thread Dano
Hi Derek, I can give your suggestion a try. Also, I figured out a way to do it without parameterizing types using raw sql rather than going thru QueryParam(). Either way, I have a solution which will work. BTW, thanks very much to you, Marius and Tyler for writing the Lift book. It really hel

[Lift] Re: Unique constraint

2009-07-06 Thread Naftoli Gugenhem
I just found the INFORMATION_SCHEMA.INDEXES table. It clearly says that all my id's are non-unique, non primary key. I'm mixing in IdPK. What am I doing wrong? - Tim Nelson wrote: H2 has a great console servlet that you can use to connect to any jdbc complian