[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

[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

[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 kev.lee.wri...@googlemail.com wrote: I have two webapps, hosted on the same server:http://lsug.org/main/http://lsug.org/stage/ Problem is, the

[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

[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 Pollakfeeder.of.the.be...@gmail.com 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

[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

[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 kev.lee.wri...@googlemail.com 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

[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

[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

[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. marius.dan...@gmail.com 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 kev.lee.wri...@googlemail.com wrote: I have two webapps, hosted on the

[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 timo...@getintheloop.euwrote: Hey Guys, Is anyone out there using SBT for their lift projects? if so, how are you finding it? Cheers, Tim

[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

[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 sur...@gmail.com 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

[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 kev.lee.wri...@googlemail.com wrote: Single Bullet Theory, or Swedish Bikini Team ? --~--~-~--~~~---~--~~ You received

[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 timo...@getintheloop.euwrote: 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] 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

[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) = {

[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 Madsenje...@ingolfs.dk wrote: On Fri, Jul 3, 2009 at 6:43 PM, David

[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 kev.lee.wri...@googlemail.comwrote: Interesting... yes it does On Mon, Jul 6, 2009 at 9:51 AM, marius d. marius.dan...@gmail.com wrote: And if you deploy only

[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

[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. marius.dan...@gmail.com 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

[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 kev.lee.wri...@googlemail.com wrote:

[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

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

[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

[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

[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

[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 feeder.of.the.be...@gmail.com wrote: I have not seen this problem (although I've seen a couple of other Safari 4

[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 feeder.of.the.be...@gmail.com wrote: On Mon, Jul 6, 2009 at 2:07 AM, Timothy Perrett timo...@getintheloop.euwrote: Hey Guys, Is anyone out there using SBT for their lift projects? if

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

[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

[Lift] Re: Using AJAX calls in Lift Snippets

2009-07-06 Thread marius d.
On Jul 6, 5:44 pm, Gonzalo N gonn...@gmail.com 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,

[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

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

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

[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

[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 mike.m...@gmail.com wrote: After making changes to move from SNAPSHOT-1.0 to SHAPSHOT-1.1 maven is refusing to start the LiftFilter Also since the

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
Eric, It seems that you want to hike the Appalachain Trail http://www.appalachiantrail.org/site/c.mqLTIYOwGlF/b.4805859/k.BFA3/Home.htmat 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

[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 Pollakfeeder.of.the.be...@gmail.com wrote: Eric, It seems that you want to

[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 je...@ingolfs.dkwrote: On Fri, Jul 3, 2009 at 6:43 PM, David Pollakfeeder.of.the.be...@gmail.com 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

[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 naftoli...@gmail.comwrote: 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

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

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

[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

[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

[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 james.mat...@gmail.com wrote: You could reach out to web design forums (they must exist), universities and the open source community at

[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 cseeri...@gmail.com wrote: David, awesome ideas you got there,thanks, about posting my improvements and

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 10:41 AM, Wilson MacGyver wmacgy...@gmail.comwrote: 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

[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 Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Jul 6, 2009 at 10:41 AM, Wilson MacGyver wmacgy...@gmail.com wrote: I would like to suggest David's Beginning Scala book. It's

[Lift] Re: Becoming a Scala/Lift Guru

2009-07-06 Thread David Pollak
On Mon, Jul 6, 2009 at 11:03 AM, Wilson MacGyver wmacgy...@gmail.comwrote: 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

[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

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

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