[Lift] Using Lift snapshot offline
For those of you who need to work offline for extended periods and are using the SNAPSHOT version of Lift (or any maven project for that matter), then executing mvn -o will only working for a day, since maven attempts to update any snapshoted code day. I was able to bypass this via a snapshots entry in my pom file as follows: repository ... relavent repo data snapshots enabledtrue/enabled updatePolicyneverupdatePolicy /snapshots /repository I had to put this into both the snapshot repo and the release repo entries. It worked in settings.xml and/or project pom file If you look into maven profiles this can be customized even more. I can add this info to the new maven entries on the wiki, if it's accurate or relavent. -- Sent from my mobile device --~--~-~--~~~---~--~~ 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 email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Hooking into /user_mgt
I agree with david, in fact protouser contains several things I don't need (not a public website) and it's pretty easy to make your own. On 12/14/08, David Pollak feeder.of.the.be...@gmail.com wrote: ProtoUser is designed to allow people to get a project up and running quickly. In all my moderately complex projects, I've subclassed so many fields in ProtoUser/MegaProtoUser that I might as well have copied and pasted the code from ProtoUser into my application. If you want to do things that go beyond the facilities in ProtoUser, I'd strongly suggest just copy/pasting the code from ProtoUser into your User.scala code and do whatever you need to do in your own code. Thanks, David On Sat, Dec 13, 2008 at 11:26 PM, Juha L sla...@gmail.com wrote: There already seems to be hooks for login logout (onLogIn/onLogOut) in the MetaMegaProtoUser. Would it be possible to also add onSignUp which would be called when user has been successfully created validated? That would make it trivial to do basic initializations for the new users. // Juha On Dec 14, 6:18 am, Derek Chen-Becker dchenbec...@gmail.com wrote: /user_mgt is handled via MetaMegaProtoUser. You may be able to override some things there. Derek On Sat, Dec 13, 2008 at 2:03 PM, Juha L sla...@gmail.com wrote: Hi again, I have need to hook some extra code into user sign up, login, and logout. In archetype-basic project all things related to user management seem to happen in magical /user_mgt, and I couldn't really find any good information about how I could alter what happens there. Could anyone provide me pointers or examples? // Juha -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Sent from my mobile device --~--~-~--~~~---~--~~ 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 email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.
What version of Maven are you using (mvn -version)? Also, it may seem silly but you need to be connected to the internet for Maven to work properly. On Wed, Dec 10, 2008 at 6:29 PM, mike beckerle [EMAIL PROTECTED] wrote: Ok, that helped. Lots happened butI still get a bunch of errors. I can follow the instructions here in that it can't seem to download scala, but the lift-related stuff is a surprise to me. ...mike [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.scala-lang:scala-library:jar:2.7.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.scala-lang - DartifactId=scala-library -Dversion=2.7.2 -Dpackaging=jar -Dfile=/path/ to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.scala-lang - DartifactId=scala-library -Dversion=2.7.2 -Dpackaging=jar -Dfile=/path/ to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) org.scala-lang:scala-library:jar:2.7.2 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- core -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- core -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT 3) net.liftweb:lift-util:jar:0.10-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- util -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- util -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT 3) net.liftweb:lift-util:jar:0.10-SNAPSHOT 4) net.liftweb:lift-webkit:jar:0.10-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- webkit -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- webkit -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT 3) net.liftweb:lift-webkit:jar:0.10-SNAPSHOT 5) net.liftweb:lift-mapper:jar:0.10-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- mapper -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- mapper -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT 3) net.liftweb:lift-mapper:jar:0.10-SNAPSHOT 6) net.liftweb:lift-machine:jar:0.10-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- machine -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- machine -Dversion=0.10-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.liftworkshop:todo:war:1.0-SNAPSHOT 2) net.liftweb:lift-core:jar:0.10-SNAPSHOT 3) net.liftweb:lift-machine:jar:0.10-SNAPSHOT 7) net.liftweb:lift-record:jar:0.10-SNAPSHOT Try downloading the file manually from the project website.
[Lift] Lift Record and Object Oriented DB
I'm real interested in using Lift with OODBs (currently using DB4O and looking and Berkeley). Is the new Record/Field stuff (I'm ignorant about Rails) concussive for this type of data access or if it more for relational structures? --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: REST CRUD web service
Chas, I didn't read the Berkley DB XML License as an Apache Software License, I think it is more like GPL. I think the Apache License is included for the libraries that Berkley DB XML depends on. I'm also interested in the Berkley DB for Java system and the Apache license is not included for that. Am I reading it wrong? I'm using Scala to access my Db4o database right now. I'd a friendlier license than the Db4o. On Mon, Nov 17, 2008 at 11:04 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Everything you need to know is here: http://www.oracle.com/technology/documentation/berkeley-db/xml/index.html It's an Apache Software License: http://www.oracle.com/technology/software/products/berkeley-db/htdocs/xmloslicense.html Happy to share notes as we go along. Are you connecting to db4o using Lift or Scala? Or is it in another project? Chas. Erick Fleming wrote: Chas, I'm not doing web services yet in my current project, but have plans to. I've been using db4o as my backend, but am interested in Berkley DB. Do you know what license it's under? The Oracle website just says Open Source. On Mon, Nov 17, 2008 at 8:21 PM, Charles F. Munat [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One thing I'm working on is a two-part application that involves a Lift interface app and a REST CRUD back end. I plan to do the back end in Lift as well. One reason for the separation is that it allows me to build other front ends for the web service (a desktop app, something on the iPhone, an Android app, etc.). Another reason is that the data model is pretty complicated, and instantiating a lot of objects is not really necessary. If I can handle the back end as just data, rather than objects, passing it in and out using XML, that would be faster and easier, I think. And I could use an XML database to store the data. A big issue, of course, is authentication and authorization. I'm wondering if anyone else here is doing web services and if so how you're handling authentication/authorization. Are you using Lift, or are you handling it through the container. Can anyone talk about pros/cons of the different methods? Suggestions? We're thinking about using Berkeley DB XML as the database. Anyone tried that? Thanks. Chas. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: REST CRUD web service
Alex, this is a quote from the link you gave: Under the open source license, you must release the complete source code for the application that uses Berkeley DB, Berkeley DB Java Edition or Berkeley DB XML. You do not need to release the source code for components that are generally installed on the operating system on which your application runs, such as system header files or libraries. This says you have to release the source code of your application, if you use the open source license for BDB. On Tue, Nov 18, 2008 at 9:27 AM, Alex Boisvert [EMAIL PROTECTED] wrote: On Mon, Nov 17, 2008 at 9:04 PM, Charles F. Munat [EMAIL PROTECTED] wrote: Everything you need to know is here: http://www.oracle.com/technology/documentation/berkeley-db/xml/index.html It's an Apache Software License: http://www.oracle.com/technology/software/products/berkeley-db/htdocs/xmloslicense.html This is only for Berkeley DB XML (the XQuery parts), which relies on Berkeley DB. Berkeley DB itself is dual-licensed. In short, you cannot redistribute it without a license. Details at: http://www.oracle.com/technology/software/products/berkeley-db/htdocs/licensing.html alex --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: REST CRUD web service
Chas, I'm not doing web services yet in my current project, but have plans to. I've been using db4o as my backend, but am interested in Berkley DB. Do you know what license it's under? The Oracle website just says Open Source. On Mon, Nov 17, 2008 at 8:21 PM, Charles F. Munat [EMAIL PROTECTED] wrote: One thing I'm working on is a two-part application that involves a Lift interface app and a REST CRUD back end. I plan to do the back end in Lift as well. One reason for the separation is that it allows me to build other front ends for the web service (a desktop app, something on the iPhone, an Android app, etc.). Another reason is that the data model is pretty complicated, and instantiating a lot of objects is not really necessary. If I can handle the back end as just data, rather than objects, passing it in and out using XML, that would be faster and easier, I think. And I could use an XML database to store the data. A big issue, of course, is authentication and authorization. I'm wondering if anyone else here is doing web services and if so how you're handling authentication/authorization. Are you using Lift, or are you handling it through the container. Can anyone talk about pros/cons of the different methods? Suggestions? We're thinking about using Berkeley DB XML as the database. Anyone tried that? Thanks. Chas. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: JQuery BlockUI
Got it. Thanks David On Thu, Nov 13, 2008 at 11:01 AM, David Pollak [EMAIL PROTECTED] wrote: On Wed, Nov 12, 2008 at 8:55 PM, Erick Fleming [EMAIL PROTECTED]wrote: I'm playing with some of the JQuery features, specifically ModalDialog, but I don't see the blockUI Plugin included. In fact I'm getting a JavaScript error. Lift does a fair amount of magical includes of JavaScript files for you, but the BlockUI stuff has to be manually included. -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Simple form binding problem
I've been racking my brain on this for some time and don't understand the problem. The cancel button redirects fine, but the save button gives an error. What am I missing? lift:UserOps.edit form=POST trtdId:/tdtdfield:id //td/tr trtdFirst Name:/tdtdfield:first //td/tr trtdLast Name:/tdtdfield:last //td/tr trtdActive:/tdtdfield:active //td/tr trtdUser Name:/tdtdfield:name //td/tr trtd colspan=2field:save /nbsp;field:cancel //td/tr /lift:UserOps.edit def edit(xhtml: NodeSeq): NodeSeq = { val user = currentUser.is match { case Empty = new User case Full(m) = m } bind(field, xhtml, id - SHtml.text(user.id.toString, (x) = println(saving user)), name - SHtml.text(user.userName, user.userName = _), first - SHtml.text(user.firstName, user.firstName = _), last - SHtml.text(user.lastName, user.lastName = _), active - SHtml.checkbox(user.active, user.active = _), save - SHtml.submit(save, { DataService.update(user); S.redirectTo(list) }), cancel - SHtml.submit(cancel, { S.redirectTo(list) }) ) } Message: java.lang.NoSuchMethodError: java.lang.Object.apply()V org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(generated) org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(generated:47) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896) scala.List.map(List.scala:798) net.liftweb.http.S$NFuncHolder.apply(S.scala:896) net.liftweb.http.LiftSession$$anonfun$buildFunc$1$2.apply(LiftSession.scala:248) net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264) net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264) scala.List.map(List.scala:798) --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Simple form binding problem
No. Just VIM and maven-plugin. On Thu, Nov 6, 2008 at 5:17 PM, David Pollak [EMAIL PROTECTED]wrote: Are you using Eclipse for development? On Thu, Nov 6, 2008 at 3:13 PM, Erick Fleming [EMAIL PROTECTED]wrote: I've been racking my brain on this for some time and don't understand the problem. The cancel button redirects fine, but the save button gives an error. What am I missing? lift:UserOps.edit form=POST trtdId:/tdtdfield:id //td/tr trtdFirst Name:/tdtdfield:first //td/tr trtdLast Name:/tdtdfield:last //td/tr trtdActive:/tdtdfield:active //td/tr trtdUser Name:/tdtdfield:name //td/tr trtd colspan=2field:save /nbsp;field:cancel //td/tr /lift:UserOps.edit def edit(xhtml: NodeSeq): NodeSeq = { val user = currentUser.is match { case Empty = new User case Full(m) = m } bind(field, xhtml, id - SHtml.text(user.id.toString, (x) = println(saving user)), name - SHtml.text(user.userName, user.userName = _), first - SHtml.text(user.firstName, user.firstName = _), last - SHtml.text(user.lastName, user.lastName = _), active - SHtml.checkbox(user.active, user.active = _), save - SHtml.submit(save, { DataService.update(user); S.redirectTo(list) }), cancel - SHtml.submit(cancel, { S.redirectTo(list) }) ) } Message: java.lang.NoSuchMethodError: java.lang.Object.apply()V org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(generated) org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(generated:47) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896) scala.List.map(List.scala:798) net.liftweb.http.S$NFuncHolder.apply(S.scala:896) net.liftweb.http.LiftSession$$anonfun$buildFunc$1$2.apply(LiftSession.scala:248) net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264) net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264) scala.List.map(List.scala:798) -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Lift testing practices
I'm exploring testing, in Lift, and would like create some documentation on the topic, but I'm not sure what direction to go in. I gather from tests in the lift-example that Specs with JUnit 4 is the current perferred frameworks. But, the lift archetypes has a different approach. I'm also confused with the winstone dependency in the example. Doesn't jetty serve this purpose? So, what are your practices to for testing Lift applications. --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---