[Lift] Re: Pain Building Lift
runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-source To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesays the clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt --~--~-~--~~~---~--~~ 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] table does not exist
Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? 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 email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] checking out examples from SVN?
I can't seem to check out the examples on the Google code project referenced in the WIKI (http://wiki.liftweb.net/index.php/ HowTo_Making_changes_to_the_samples) Have they moved? Thanks in advance Ray --~--~-~--~~~---~--~~ 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: GAE (google apps engine) Lift Eclipse Setup
I found a fix for the errors on the importation at http://www.kleinfelter.com/node/82 You can run: mvn -Declipse.workspace=K:\code eclipse:add-maven-repo replacing K:\Code with your eclipse workspace. It sets elipse up to search maven for references or somesuch. On Sep 3, 11:36 pm, finelinestudio finelinestu...@gmail.com wrote: Thanks Tyler, thought it might be something like that. I can see that a more conventional approach of running mvn: eclipse on the standard lift example project creates an eclipse project without the problems mentioned above - so that gives me something to go on to find what's up with myGAEproject. On Sep 3, 10:19 pm, TylerWeir tyler.w...@gmail.com wrote: test .. can't see previous post New members are moderated. --~--~-~--~~~---~--~~ 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: all page URLs appended with ;jsessionid=knq01t90ajh7
It looks like LiftRules.urlDecorate may be what I'm looking for, but combing through net.liftweb.http.Req and net.liftweb.http.S, I'm at at a loss for what to change it to, or how it even gets used by Req._fixHref when updating the URLs. I'm reluctant to start changing LiftRules.urlDecorate to my own URLDecoratorPF based on the code comment about it being used for Ajax requests. I'm not wanting to cause any more of a mess than necessary. From what I can tell, Req._fixHref is where the URLs are actually being rewritten. The only test I see in here that may be of any use to me is rewrite.isDefined which refers to URLRewriter.rewriteFunc. S.encodeURL is where this seems to be set: --- S.scala -- def encodeURL(url: String) = { URLRewriter.rewriteFunc map (_(url)) openOr url } I feel like I've missed the code that adds the jsessionid to the URLRewriter object somewhere, so maybe there is another LiftRule that will let me shut this off. Beyond my still wanting to disable this specific URL rewriting within Lift, what I have found about using jsessionid in URLs leads me to believe that there may be a bug here somewhere. See if I have this right: When a client (browser) connects, the servlet container doesn't know if cookies are enabled. It sets a session cookie on the response, and also rewrites path URLs to include ;jsessionid=yourSessionId. If the browser has cookies disabled, on the second request the server will find jsessionid on the end of request URL which is will use to maintain an active session (not very secure, but that's another story). It then rewrites the URL without the jsessionid parameter and forwards it on to the appropriate context for further handling. What I'm seeing is that when a client has cookies enabled, the server is not stripping the jsessionid from the requested URI if it refers to a resource other than one handled by Lift directly (ie *.html ). For other file types the server is failing to rewrite the URL without ;jsessionid=uniqueid which is leading to 404 errors when looking for things like .m4v .jpg etc. Can someone else verify this? Grant On Sep 18, 2:43 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Lift is inserting these are part of the URL rewriting at the request of the container. Is this causing a problem? If it is, you can disable it... I forgot how, but I can dig through the code to find out the appropriate LiftRules to change. --~--~-~--~~~---~--~~ 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] Lift runtime error
Hey Lifters, I overrode the toString method of a foreign key field, to make decisions, on what to return, nothing special. When I remove the if/else (Order.scala, line 65 ff.) and return directly the result, no error occurs! I append the source as attachment. Further on, I've a similar error to one I already got (and solved with David's help). Initializing a foreign key field, with a value that doesn't exist at compile time. In line 45 ff. in file Order.scala is the solution, on how to do that. But this doesn't work for line 76 (same file). Why? What I do now, just to have the ability to test some things, is to comment out line 76 before I compile first (create all other tables) and then uncomment it and restart the application. Then it works, but if I don't do that, I get the error that table/view TRADESTATUS doesn't exist. thanks alot in advance! Here is the error that is forced through the if/else in line 65 ff. in file Order.scala. --- Exception occured while processing /limitorder/list Message: java.lang.AbstractMethodError: org.tobster.model.LimitOrder.tradeTypeName2()Ljava/lang/String; org.tobster.model.Order$tradeType$.toString(Order.scala:71) net.liftweb.mapper.MappedField$class.asHtml(MappedField.scala:645) net.liftweb.mapper.MappedLong.asHtml(MappedLong.scala:223) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1$$anonfun$doRowItem$1$1.apply(CRUDify.scala:469) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1$$anonfun$doRowItem$1$1.apply(CRUDify.scala:469) scala.List.flatMap(List.scala:1132) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1.doRowItem$1(CRUDify.scala:468) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1$$anonfun$apply$7.apply(CRUDify.scala:471) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1$$anonfun$apply$7.apply(CRUDify.scala:471) net.liftweb.util.BindHelpers$FuncBindParam.calcValue(BindHelpers.scala:218) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$$anonfun$apply$24.apply(BindHelpers.scala:433) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$$anonfun$apply$24.apply(BindHelpers.scala:426) net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:425) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:424) scala.Seq$class.flatMap(Seq.scala:294) scala.xml.NodeSeq.flatMap(NodeSeq.scala:34) net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1(BindHelpers.scala:424) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:444) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:424) scala.Seq$class.flatMap(Seq.scala:294) scala.xml.NodeSeq.flatMap(NodeSeq.scala:34) net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1(BindHelpers.scala:424) net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:449) net.liftweb.util.BindHelpers$$anonfun$bind$2.apply(BindHelpers.scala:409) net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65) net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:409) net.liftweb.util.Helpers$.bind(Helpers.scala:29) net.liftweb.util.BindHelpers$class.bind(BindHelpers.scala:380) net.liftweb.util.Helpers$.bind(Helpers.scala:29) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1.apply(CRUDify.scala:471) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doRows$1$1.apply(CRUDify.scala:467) scala.List.flatMap(List.scala:1132) net.liftweb.mapper.CRUDify$$anon$1.doRows$1(CRUDify.scala:466) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doCrudAll$2.apply(CRUDify.scala:486) net.liftweb.mapper.CRUDify$$anon$1$$anonfun$doCrudAll$2.apply(CRUDify.scala:486) net.liftweb.util.BindHelpers$FuncBindParam.calcValue(BindHelpers.scala:218) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$$anonfun$apply$24.apply(BindHelpers.scala:433) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1$$anonfun$apply$24.apply(BindHelpers.scala:426) net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:425) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:424) scala.Seq$class.flatMap(Seq.scala:294) scala.xml.NodeSeq.flatMap(NodeSeq.scala:34) net.liftweb.util.BindHelpers$$anonfun$bind$2.in_bind$1(BindHelpers.scala:424) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:444) net.liftweb.util.BindHelpers$$anonfun$bind$2$$anonfun$in_bind$1$1.apply(BindHelpers.scala:424)
[Lift] Re: Direct To Web
Is more than scaffolding. d2W is very customizabe with rules, there are embedded d2w components, you can define your own property and task components, etc. Here are some articles where Direct To Web is described. http://www.stepwise.com/Articles/Technical/D2W/D2W1.html http://wiki.objectstyle.org/confluence/display/WO/Direct-To-Web Regards, Daniel. On Sep 18, 11:27 am, Timothy Perrett timo...@getintheloop.eu wrote: Daniel, Can you describe direct to web for those of us not familiar? Cheers, Tim On 18 Sep 2009, at 17:11, Daniel Mejía wrote: Hi all, In Apple´s WebObjects framework there is a wondeful technology known as Diect to Web that enables rapid prototyping base in rules. Is there something similar in lift? regards, Daniel. --~--~-~--~~~---~--~~ 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: all page URLs appended with ;jsessionid=knq01t90ajh7
I just committed the fix. Box[String = String] is calling URLRewriter which holds the function that does URL manipulation. This is set in HTTP Provider. It does 2 things: - calls encodeURL - calls URLDecorator URLDecorator is important in case one wants to add something to all URL's. For instance in case of sticky sessions, load balancers need to know where to balance a request and this is done by various policies: - JSESSIONID affinity - URI based balancing (here URLDecorator makes a lot of sense as load balancers can determine where to balance requests based on a query string parameter) Other notes about your comments When a client (browser) connects, the servlet container doesn't know if cookies are enabled. It sets a session cookie on the response, and also rewrites path URLs to include ;jsessionid=yourSessionId. - Server does not rewrite URLs if container's cookies are turned ON. This decision is done by the container and not Lift. So you either have JSESSIONID as a cookie or as part of the URL aka URL rewriting. Br's, Marius On Sep 19, 12:09 am, Grant Wood smackt...@gmail.com wrote: Atsuhiko's experience makes sense if you look in Req. _fixHref is where the rewriting is actually happening: --- Req ... private def _fixHref(contextPath: String, v : Seq[Node], fixURL: Boolean, rewrite: Box[String = String]): Text = { val hv = v.text val updated = if (hv.startsWith(/)) contextPath + hv else hv Text(if (fixURL rewrite.isDefined !updated.startsWith(mailto:;) !updated.startsWith(javascript:) !updated.startsWith(http://;) !updated.startsWith(https://;)) rewrite.open_!.apply(updated) else updated) } ... Req --- Lift is skipping the rewrite if the attribute startsWith (javascript:) but if it starts with # it will be rewritten. This would be an easy fix: !updated.startsWith(#) I suspect this change would meet most developers behavior expectations. If a client is not using cookies and requires :jsessionid=theSessionId to be appended, this test will also fail to properly rewrite fully qualified URLs with the http or https protocol that have the same hostname (S.hostName) as the authority section. Someone with a better handle on the Servlet and Servlet Container spec will have to chime in and determine whether there are rules governing this situation. Does anybody know if rewrite: Box[String = String] being used by anything other than the jsessionid rewrite? - Grant On Sep 18, 9:46 pm, marius d. marius.dan...@gmail.com wrote: LIft doesn't explicitly add jsessionid to the URL but it calls encodeUrl on the HttpServletResponse. If in the container you have the cookies turned off URL rewrite comes into picture. This is because we need lift apps to still work when cookies are turned off from container. This is the correct behavior. Your specific example sounds like a bug and I'll try to fix it tomorrow. Br's, Marius On Sep 18, 7:04 pm, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Sat, Sep 19, 2009 at 4:43 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Is this causing a problem? If it is, you can disable it... I forgot how, but I can dig through the code to find out the appropriate LiftRules to change. I had troubles. For example, a href=# onlick=...click/a was suddenly transformed to a href=;jsessionid=knq01t90ajh7# onlick=...click/a and the page reload was happened unexpectedly. Now, I have rewritten those anchor tags as a href=javascript:void(0) onclick=...click/a and such troubles have disappeared. So, it is not a problem for me anymore. This is just FYI. Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ --~--~-~--~~~---~--~~ 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: checking out examples from SVN?
Everything is in GitHub at http://github.com/dpp/liftweb/ On Sat, Sep 19, 2009 at 12:24 AM, mond ray mond mondraym...@gmail.comwrote: I can't seem to check out the examples on the Google code project referenced in the WIKI (http://wiki.liftweb.net/index.php/ HowTo_Making_changes_to_the_samples) Have they moved? Thanks in advance Ray -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
First, you should not be doing sudo (Tim pointed this out). Nothing about Lift needs root. Second, there is a known issue with the OpenJDK compiling Lift sources. I've got it on my to-do list to look into it, but my to-do list is about a month long. On Fri, Sep 18, 2009 at 5:14 PM, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Reading http://wiki.liftweb.net/index.php/Source_code says the clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Direct To Web
Lift doesn't support anything like that at this time. The closest thing is CRUDify. You should be able to write a trait (like CRUDify) that gives you more control. On Sat, Sep 19, 2009 at 8:04 AM, mejiad daniel...@gmail.com wrote: Is more than scaffolding. d2W is very customizabe with rules, there are embedded d2w components, you can define your own property and task components, etc. Here are some articles where Direct To Web is described. http://www.stepwise.com/Articles/Technical/D2W/D2W1.html http://wiki.objectstyle.org/confluence/display/WO/Direct-To-Web Regards, Daniel. On Sep 18, 11:27 am, Timothy Perrett timo...@getintheloop.eu wrote: Daniel, Can you describe direct to web for those of us not familiar? Cheers, Tim On 18 Sep 2009, at 17:11, Daniel Mejía wrote: Hi all, In Apple´s WebObjects framework there is a wondeful technology known as Diect to Web that enables rapid prototyping base in rules. Is there something similar in lift? regards, Daniel. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small sample: [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/ scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement [WARNING] underlying.setSQLXML(index, x) [WARNING] ^ [WARNING] 28 errors found [INFO] [ERROR] BUILD FAILURE [INFO] What must be done to build successfully? Thanks Ray On Sep 19, 10:35 am, Timothy Perrett timo...@getintheloop.eu wrote: runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-s... To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesaysthe clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt --~--~-~--~~~---~--~~ 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: table does not exist
On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? No. Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? No. The only thing I'd suggest is doing mvn clean whenever you make a non-trivial change as changes in traits don't roll up automatically to the classes that extend the traits using Maven. thanks -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift Download Instructions for Linux (Maven Installation Instructions)
You can download maven from http://maven.apache.org/download.html Personally, I untar the maven distribution into ~/apps, prepend PATH with ~/bin and symlink ~/bin/mvn to ~/apps/*maven_version*/bin/mvn On Fri, Sep 18, 2009 at 5:57 PM, espeed james.thorn...@gmail.com wrote: The Lift download instructions for Linux says: For linux, we recommend that you use your native package management system to install maven. If you are unsure how to do this, please refer to your OS documentation. However, the maven2 version for the the yum package on Fedora is maven 2.0.4, which is not current enough because mvn -e archetype:generate will fail with Required goal not found: archetype:generate. Downloading the source and following the source installation instructions resolves the issue -- http://maven.apache.org/download.html#Installation I suspect that many of the maven packages are not current for the various distributions so it would probably be beneficial to update the Lift download instructions to reflect this. James Thornton [ja...@fedora espeed]$ mvn -e archetype:generate /usr/lib/jvm/java + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] Ignoring available plugin update: 2.0-alpha-4 as it requires Maven version 2.0.7 [INFO] Ignoring available plugin update: 2.0-alpha-3 as it requires Maven version 2.0.7 [INFO] Ignoring available plugin update: 2.0-alpha-2 as it requires Maven version 2.0.7 [INFO] Ignoring available plugin update: 2.0-alpha-1 as it requires Maven version 2.0.7 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: archetype:generate [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Required goal not found: archetype:generate at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1533) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds (DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Sep 18 19:23:30 CDT 2009 [INFO] Final Memory: 2M/5M [INFO] -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
On Sat, Sep 19, 2009 at 9:31 AM, mond ray mond mondraym...@gmail.comwrote: It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small sample: [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/ scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement [WARNING] underlying.setSQLXML(index, x) [WARNING] ^ [WARNING] 28 errors found [INFO] [ERROR] BUILD FAILURE [INFO] What must be done to build successfully? I build from source at least 10 times a day. I've installed Maven (2.0.9 on most of my machines). I type mvn clean install and it always works. It's very important to do the clean step before the install step because if there's cruft sitting around in the target directories it could cause issues. Thanks Ray On Sep 19, 10:35 am, Timothy Perrett timo...@getintheloop.eu wrote: runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-s... To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesaysthe clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Alternate Lift builds?
On Fri, Sep 18, 2009 at 4:44 PM, Kevin Wright kev.lee.wri...@googlemail.com wrote: Your best bet is probably: Modifiy the pom in the branch, e.g. by adding a qualifier to the version infoManually configure a second build in hudson that points to the branch I'm pretty sure you can't automate on this one :( Thanks! On Sat, Sep 19, 2009 at 12:38 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
That it might be - but in my experience, building anything from source is not usually the path of least resistance and its why I suggest that pulling releases / snapshots from the maven repo is sooo much easier, for example: http://scala-tools.org/repo-releases/net/liftweb/lift-webkit/1.0.2/ Im currently only working with the main 1.1-SNAPSHOT branch, Derek is the one who has been doing the 1.0 maintenance releases so im not familiar with what might be wrong. However, the code in those maintenance releases is in 1.1-SNAPSHOT and that builds fine so we shouldn't have any problems from a project perspective (hudson is building no problem right now) Does that help? Cheers, Tim On 19 Sep 2009, at 17:31, mond ray mond wrote: It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small sample: [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/ scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement [WARNING] underlying.setSQLXML(index, x) [WARNING] ^ [WARNING] 28 errors found [INFO] [ERROR] BUILD FAILURE [INFO] What must be done to build successfully? Thanks Ray On Sep 19, 10:35 am, Timothy Perrett timo...@getintheloop.eu wrote: runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from- s... To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesaysthe clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt --~--~-~--~~~---~--~~ 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: Pain Building Lift
On my Mac OS X box: pony:liftweb dpp$ mvn -version Maven version: 2.0.9 Java version: 1.6.0_15 OS name: mac os x version: 10.6 arch: i386 Family: mac pony:liftweb dpp$ Here's the build log: pony:~ dpp$ cd tmp/ pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git Initialized empty Git repository in /Users/dpp/tmp/liftweb/.git/ remote: Counting objects: 35122, done. remote: Compressing objects: 100% (12807/12807), done. remote: Total 35122 (delta 14036), reused 34877 (delta 13857) Receiving objects: 100% (35122/35122), 18.53 MiB | 907 KiB/s, done. Resolving deltas: 100% (14036/14036), done. pony:tmp dpp$ cd liftweb/ pony:liftweb dpp$ git tag 0.10 0.9 1.0 1.0.1 1.0.2 1.1-M1 1.1-M3 1.1-M4 1.1-M5 bonded_to_rev_121_baf_dpp buy_a_feature_svn_130 igo_1_0 innovation_games_oneline_1_0 osgi01 teched08_demo_jam pony:liftweb dpp$ git checout 1.0.2 git: 'checout' is not a git-command. See 'git --help'. Did you mean this? checkout pony:liftweb dpp$ git checkout 1.0.2 Note: moving to '1.0.2' which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at eb3efbd... [release] prepare 1.0.2 pony:liftweb dpp$ mvn clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Lift [INFO] Lift Utils [INFO] Lift WebKit [INFO] Lift Mapper [INFO] Lift Machine [INFO] Lift Record [INFO] Lift Textile [INFO] Lift Facebook [INFO] Lift AMQP [INFO] Lift XMPP [INFO] Lift Widgets [INFO] Lift OpenID [INFO] Lift OAuth [INFO] Lift PayPal [INFO] Lift TestKit [INFO] Lift Core (full lift) [INFO] Lift Sites [INFO] Lift Example [INFO] Skittr Example [INFO] HelloLift example application [INFO] HelloDarwin tutorial application [INFO] JPA Demo Master [INFO] JPADemo-spa [INFO] JPADemo-web [INFO] HTTP Authentication example [INFO] lift-archetype-blank [INFO] lift-archetype-basic WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Lift [INFO]task-segment: [clean, install] [INFO] [INFO] artifact org.scala-tools:maven-scala-plugin: checking for updates from scala-tools.org [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for updates from scala-tools.org [INFO] [clean:clean] [INFO] [scala:compile {execution: default}] [INFO] Checking for multiple versions of scala [WARNING] No source files found. [INFO] [scala:testCompile {execution: default}] [INFO] Checking for multiple versions of scala [WARNING] No source files found. [INFO] [site:attach-descriptor] [INFO] Preparing source:jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:jar {execution: attach-sources}] [INFO] [install:install] [INFO] Installing /Users/dpp/tmp/liftweb/pom.xml to /Users/dpp/.m2/repository/net/liftweb/lift/1.0.2/lift-1.0.2.pom [INFO] [INFO] Building Lift Utils [INFO]task-segment: [clean, install] [INFO] [INFO] artifact net.sf.alchim:yuicompressor-maven-plugin: checking for updates from scala-tools.org [INFO] [clean:clean] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [yuicompressor:compress {execution: default}] [INFO] nb warnings: 0, nb errors: 0 [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org.snapshots [INFO] artifact org.mortbay.jetty:jetty: checking for updates from central Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty/6.1.20/jetty-6.1.20.pom Downloading: http://scala-tools.org/repo-snapshots/org/mortbay/jetty/jetty/6.1.20/jetty-6.1.20.pom Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.1.20/jetty-6.1.20.pom 6K downloaded Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-util/6.1.20/jetty-util-6.1.20.pom Downloading: http://scala-tools.org/repo-snapshots/org/mortbay/jetty/jetty-util/6.1.20/jetty-util-6.1.20.pom Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-util/6.1.20/jetty-util-6.1.20.pom 3K downloaded Downloading: http://scala-tools.org/repo-releases/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.pom Downloading: http://scala-tools.org/repo-snapshots/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.pom Downloading: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.pom 150b downloaded [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [scala:compile {execution: default}] [INFO] Checking for multiple versions of scala [INFO] Compiling 32 source files to
[Lift] Session locking...
Guys, I have a situation where i need to sort of present some kind of locking to the users of this application. For instance, user A opens thing Z (perhaps i update the database with some flag or whatever) then user B attempts to open thing Z from another terminal. Its at that point that I want user B to be told that its locked or being edited by another user. So far, so good. However, if user A dropped out without saving or whatever (thus unsetting the locked flag) it would be locked for all. To that end, I was wondering if its possible to register some kind of session destruction callback. By that I mean lift keeps sessions open for as long as the browser window is open, so when the session is killed off i could just have some function execute to unlock the thing Z or whatever. Is there a way to do this? 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@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: Pain Building Lift
I'm running Snow Leopard, Maven 2.2.1. And I use git pull to keep track of the latest source. I use export MAVEN_OPTS=-Xmx1024m and then mvn clean install I've been doing that for the past 3 month or so now. It's only broke twice for me. Both times had to do with new code, and both were resolved within hours of being reported. So as a whole, I've had very positive experience building from the src for Lift. On Sat, Sep 19, 2009 at 12:31 PM, mond ray mond mondraym...@gmail.com wrote: It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small sample: [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/ scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement [WARNING] underlying.setSQLXML(index, x) [WARNING] ^ [WARNING] 28 errors found [INFO] [ERROR] BUILD FAILURE [INFO] What must be done to build successfully? Thanks Ray On Sep 19, 10:35 am, Timothy Perrett timo...@getintheloop.eu wrote: runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-s... To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesaysthe clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt -- Omnem crede diem tibi diluxisse supremum. --~--~-~--~~~---~--~~ 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: Alternate Lift builds?
Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: profiles profile iddppactor/id activation activeByDefaultfalse/activeByDefault /activation dependencies dependency groupIdnet.liftweb/groupId artifactIdlift-actor/artifactId version1.1-SNAPSHOT/version classifierdpp/classifier /dependency /dependencies /profile /profiles See http://maven.apache.org/pom.html#Profiles for more. Now if you invoke mvn -Pdppactor compile, the dependency would be on lift-actor-1.1-SNAPSHOT-dpp.jar! To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the same technique (another profile). Just use the optional config parameter 'classifier' See: http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier Now Hudson build would just need the extra param (-P) to do the needful. Hope this helps. Cheers, Indrajit On Sep 19, 4:38 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Tabs + menu builder
Jeppe We've made primary/secondary navigation where primary navigation is ... I did something similar..found it difficult to work with the default snippets. But found it hard, when writing my own group snippet, to identify the current Loc within the LocGroups Locs. So Jeppe, would be very interested in your code for that snippet. Mine is below (only slightly modified from Menu.group). But it's not yet quite there. I also had a fiendish problem (lift 1.0.2 scala 2.7.5) when trying to use attributes li:class=x li_item:class=y on the tag. Isn't that a standard technique? Does it work for everyone else? For me, Scala chokes on that with a syntax error (further experiments suggest that it doesn't like two attributes with same name and different prefix, perhaps also because BOTH prefixes are from an unknown namespace). Of course it doesn't show you the exact error but faults with an IllegalArgumentException on scala.io.Source, but this has been discussed elsewhere. Anyway, that's why I have the new unprefixed attributes in the code below. def menuGroup(template: NodeSeq): NodeSeq = { val a_attrs = S.prefixedAttrsToMetaData(a) val li_attrs = S.attr(normalclass) match { case Full(c: String) = new UnprefixedAttribute(class, c, Null); case _ = Null } val li_sel_attrs = S.attr(selectedclass) match { case Full(c: String) = new UnprefixedAttribute(class, c, Null); case _ = Null } val currentLoc = LiftRules.siteMap.open_!.findLoc (S.request.open_!) openOr null for (group - S.attr(group).toList; siteMap - LiftRules.siteMap.toList; loc - siteMap.locForGroup(group); link - loc.createDefaultLink; linkText - loc.linkText) yield { val a = a href={link}{linkText}/a % a_attrs var li: Elem = li{a}/li if (loc == currentLoc) li % li_sel_attrs else li % li_attrs } } --~--~-~--~~~---~--~~ 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: table does not exist
Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? No. Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? No. The only thing I'd suggest is doing mvn clean whenever you make a non-trivial change as changes in traits don't roll up automatically to the classes that extend the traits using Maven. thanks -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: table does not exist
Hey David, I don't know what I did differently, but now, after the 5th mvn clean, the problem disappeard. Really don't know why, or what happened. Sorry for bothering you. Thanks! This is strange... please create a project that demonstrates this, post the project to GitHub and open a Lift ticket referencing the project and this thread and we'll fix the problem. On Sat, Sep 19, 2009 at 11:06 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? No. Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? No. The only thing I'd suggest is doing mvn clean whenever you make a non-trivial change as changes in traits don't roll up automatically to the classes that extend the traits using Maven. thanks -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: table does not exist
Could this be a case of jvm on windows locking some files? Cheers, Indrajit On Sep 19, 11:38 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hey David, I don't know what I did differently, but now, after the 5th mvn clean, the problem disappeard. Really don't know why, or what happened. Sorry for bothering you. Thanks! This is strange... please create a project that demonstrates this, post the project to GitHub and open a Lift ticket referencing the project and this thread and we'll fix the problem. On Sat, Sep 19, 2009 at 11:06 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? No. Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? No. The only thing I'd suggest is doing mvn clean whenever you make a non-trivial change as changes in traits don't roll up automatically to the classes that extend the traits using Maven. thanks -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: table does not exist
I don't think soI'm using Ubuntu:-) I just saw, that I got a little bit confused, because I wrote two mails. And the thing is, that the problem with if/else in override def toString now works fine. But there's still this one lelf. So I still get the table/view doesn't exist error, when I first start after I wiped out the entire database. thanks. Could this be a case of jvm on windows locking some files? Cheers, Indrajit On Sep 19, 11:38 pm, Tobias Daub hannes.flo...@gmx.li wrote: Hey David, I don't know what I did differently, but now, after the 5th mvn clean, the problem disappeard. Really don't know why, or what happened. Sorry for bothering you. Thanks! This is strange... please create a project that demonstrates this, post the project to GitHub and open a Lift ticket referencing the project and this thread and we'll fix the problem. On Sat, Sep 19, 2009 at 11:06 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, I did a mvn clean before, but that didn't changed anything. My pom.xml file says: Scala 2.7.5, Lift 1.1-M5. thanks. On Sat, Sep 19, 2009 at 5:32 AM, Tobias Daub hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Lifters, I defined the table that caused the error and I listet the meta object in Schemifier.schemify(...) inside Boot.scala. Are there any other reason, that might cause this error? No. Besides that, I've the impression, that sometimes, somethings work, and then after some compilations they don't (without changing anything that relats to it)..I'm using Netbeans 6.7 on Ubuntu 8.04are there any known problems, API breaks whatever? No. The only thing I'd suggest is doing mvn clean whenever you make a non-trivial change as changes in traits don't roll up automatically to the classes that extend the traits using Maven. thanks -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Speaking at Developer Day in Boulder
FYI, for anyone in the Denver/Boulder area, I'll be giving an intro talk on Scala at the Developer Day, Boulder event on October 10th: http://developer-day.com/events/2009-boulder.html There will be a pretty wide variety of presentations there, so I hope this will help spread the word on Scala to a wider audience! Cheers, Derek --~--~-~--~~~---~--~~ 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: Alternate Lift builds?
Quite right, it's classifier and not qualifier. It was a typo, honest! :-p Nice thinking about using profiles, lets you keep the pom in sync between trunk and the branch, should help nicely with those merges One change I would make though is to activate the profile by way of a property: http://maven.apache.org/guides/introduction/introduction-to-profiles.html It doesn't make a great deal of difference at this level, but I've found it can really make things a lot more flexible if you want to start mixing in configurations based on architecture or JVM version, or if you're working with multi-module builds. http://maven.apache.org/guides/introduction/introduction-to-profiles.html On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri indraj...@gmail.comwrote: Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: profiles profile iddppactor/id activation activeByDefaultfalse/activeByDefault /activation dependencies dependency groupIdnet.liftweb/groupId artifactIdlift-actor/artifactId version1.1-SNAPSHOT/version classifierdpp/classifier /dependency /dependencies /profile /profiles See http://maven.apache.org/pom.html#Profiles for more. Now if you invoke mvn -Pdppactor compile, the dependency would be on lift-actor-1.1-SNAPSHOT-dpp.jar! To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the same technique (another profile). Just use the optional config parameter 'classifier' See: http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier Now Hudson build would just need the extra param (-P) to do the needful. Hope this helps. Cheers, Indrajit On Sep 19, 4:38 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Alternate Lift builds?
Acknowledged. Using property to activate profile allows greater flexibility and would be preferred option indeed. Cheers, Indrajit On 20/09/09 1:19 AM, Kevin Wright wrote: Quite right, it's classifier and not qualifier. It was a typo, honest! :-p Nice thinking about using profiles, lets you keep the pom in sync between trunk and the branch, should help nicely with those merges One change I would make though is to activate the profile by way of a property: http://maven.apache.org/guides/introduction/introduction-to-profiles.html It doesn't make a great deal of difference at this level, but I've found it can really make things a lot more flexible if you want to start mixing in configurations based on architecture or JVM version, or if you're working with multi-module builds. http://maven.apache.org/guides/introduction/introduction-to-profiles.html On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri indraj...@gmail.com mailto:indraj...@gmail.com wrote: Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: profiles profile iddppactor/id activation activeByDefaultfalse/activeByDefault /activation dependencies dependency groupIdnet.liftweb/groupId artifactIdlift-actor/artifactId version1.1-SNAPSHOT/version classifierdpp/classifier /dependency /dependencies /profile /profiles See http://maven.apache.org/pom.html#Profiles for more. Now if you invoke mvn -Pdppactor compile, the dependency would be on lift-actor-1.1-SNAPSHOT-dpp.jar! To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the same technique (another profile). Just use the optional config parameter 'classifier' See: http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier Now Hudson build would just need the extra param (-P) to do the needful. Hope this helps. Cheers, Indrajit On Sep 19, 4:38 am, David Pollak feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
That particular error is saying that java.sql.PreparedStatement.setSQLXML doesn't exist. This method was added in 1.6, so I may have unwittingly made the build break under 1.5. Are you, by any chance, using a 1.5 JDK? Derek On Sat, Sep 19, 2009 at 10:31 AM, mond ray mond mondraym...@gmail.comwrote: It's an open source project so I don't think that users that have the temerity to build it should be questioned ;-) Like our friend runt (probably not his / her real name), I have built 1.0.2 from the github tag, following your instructions and get build problems with the SQLMapper. A small sample: [WARNING] /Users/ray/NetBeansProjects/liftweb/lift-mapper/src/main/ scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement [WARNING] underlying.setSQLXML(index, x) [WARNING] ^ [WARNING] 28 errors found [INFO] [ERROR] BUILD FAILURE [INFO] What must be done to build successfully? Thanks Ray On Sep 19, 10:35 am, Timothy Perrett timo...@getintheloop.eu wrote: runt, Why on earth are you sudo'ing for a simple build? Moreover, is there a reason you want to build from source? See my instructions here: http://wiki.github.com/dpp/liftweb/how-to-getting-and-building-from-s... To be honest, if you just want to use lift then you really don't need to build the source - try the following command also: mvn archetype:generate -DarchetypeCatalog=http://scala-tools.org/ Try those and let me know... Cheers, Tim On Sep 19, 1:14 am, runt run...@gmail.com wrote: Hi Everyone, Ok, so I want to see what the hype is about with Lift - it sounds pretty exciting. However trying to build Lift from source is killing my buzz, I tried using the instructions from the wiki sudo git clone git://github.com/dpp/liftweb.git cd liftweb sudo /opt/maven/bin/mvn -e install on unbuntu 9.04, with maven 2.2.1, and git 1.6.3.3. I have a tried it a couple times and had epic fails that have ranged from compilation errors to runtime errors. Readinghttp://wiki.liftweb.net/index.php/Source_codesaysthe clone URL is from the trunk. Please correct me if I am mistaken with that - I cannot seem to find anything about Lift's release management. My question is are stable release sources available? I would like to try my luck with one of those. Thankyou - runt --~--~-~--~~~---~--~~ 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: all page URLs appended with ;jsessionid=knq01t90ajh7
For jetty, you might also try the following inside your web.xml webapp section: context-param param-nameorg.mortbay.jetty.servlet.SessionURL/param-name param-valuenone/param-value /context-param see: http://docs.codehaus.org/display/JETTY/SessionIds Lee --~--~-~--~~~---~--~~ 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: Session locking...
S.session.foreach { _.addCleanupFunction { sess = ... } }, I think should work. I haven't looked at the session code in a while. You would need to register that call for each user's session. Alternatively, there's LiftSession.onShutdownSession, but I think that that call comes later in the shutdown process, and may not work correctly. Derek On Sat, Sep 19, 2009 at 11:10 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys, I have a situation where i need to sort of present some kind of locking to the users of this application. For instance, user A opens thing Z (perhaps i update the database with some flag or whatever) then user B attempts to open thing Z from another terminal. Its at that point that I want user B to be told that its locked or being edited by another user. So far, so good. However, if user A dropped out without saving or whatever (thus unsetting the locked flag) it would be locked for all. To that end, I was wondering if its possible to register some kind of session destruction callback. By that I mean lift keeps sessions open for as long as the browser window is open, so when the session is killed off i could just have some function execute to unlock the thing Z or whatever. Is there a way to do this? 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@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: How do I hook up JS events to onsubmit on a lift-controlled form?
That's what I ended up doing. Any particular reason why JS events can't be passed through? Granted, it's a nice to have, but it could save ex-RoR (and ex-ASP.NET) developers a few WTFs. :-) On Sep 14, 11:46 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:02 PM, DMB combust...@gmail.com wrote: Hi, folks, I'm moving one of my old ruby based apps over to Scala/Lift to learn Lift better, and here's one thing I was not able to find how to do. Some forms in the old app have onsubmit event on the form tag which combines / pre-validates things in the form, puts the output into a hidden field and wipes some of the fields prior to submitting. I can't seem to find a way to hook up a JS event to a Lift form defined like so: lift:IndexView.show form=post lift:IndexView.show form=post id=foobar ... Then hook your onsubmit up to the form element with the id foobar. Does that work? If I add onsubmit event to this tag, it simply gets ignored. How do I do this in Lift? Also, Ruby on Rails conveniently appends an integer value at the end of script and CSS urls, which comes in handy when you want to maximize caching but don't want to risk serving the old scripts and stylesheets to the users. Is there a corresponding mechanism for this in Lift? Thank you. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Pain Building Lift
Ha - beat you ;-) [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 7 minutes 56 seconds [INFO] Finished at: Sat Sep 19 22:02:30 CEST 2009 [INFO] Final Memory: 47M/85M [INFO] bash-3.2$ Must have been the 'clean'. My missus says I should tidy up more often too! Thanks for the support Best regards Ray On Sep 19, 7:03 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On my Mac OS X box: pony:liftweb dpp$ mvn -version Maven version: 2.0.9 Java version: 1.6.0_15 OS name: mac os x version: 10.6 arch: i386 Family: mac pony:liftweb dpp$ Here's the build log: pony:~ dpp$ cd tmp/ pony:tmp dpp$ git clone git://github.com/dpp/liftweb.git Initialized empty Git repository in /Users/dpp/tmp/liftweb/.git/ remote: Counting objects: 35122, done. remote: Compressing objects: 100% (12807/12807), done. remote: Total 35122 (delta 14036), reused 34877 (delta 13857) Receiving objects: 100% (35122/35122), 18.53 MiB | 907 KiB/s, done. Resolving deltas: 100% (14036/14036), done. pony:tmp dpp$ cd liftweb/ pony:liftweb dpp$ git tag 0.10 0.9 1.0 1.0.1 1.0.2 1.1-M1 1.1-M3 1.1-M4 1.1-M5 bonded_to_rev_121_baf_dpp buy_a_feature_svn_130 igo_1_0 innovation_games_oneline_1_0 osgi01 teched08_demo_jam pony:liftweb dpp$ git checout 1.0.2 git: 'checout' is not a git-command. See 'git --help'. Did you mean this? checkout pony:liftweb dpp$ git checkout 1.0.2 Note: moving to '1.0.2' which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at eb3efbd... [release] prepare 1.0.2 pony:liftweb dpp$ mvn clean install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Lift [INFO] Lift Utils [INFO] Lift WebKit [INFO] Lift Mapper [INFO] Lift Machine [INFO] Lift Record [INFO] Lift Textile [INFO] Lift Facebook [INFO] Lift AMQP [INFO] Lift XMPP [INFO] Lift Widgets [INFO] Lift OpenID [INFO] Lift OAuth [INFO] Lift PayPal [INFO] Lift TestKit [INFO] Lift Core (full lift) [INFO] Lift Sites [INFO] Lift Example [INFO] Skittr Example [INFO] HelloLift example application [INFO] HelloDarwin tutorial application [INFO] JPA Demo Master [INFO] JPADemo-spa [INFO] JPADemo-web [INFO] HTTP Authentication example [INFO] lift-archetype-blank [INFO] lift-archetype-basic WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Lift [INFO] task-segment: [clean, install] [INFO] [INFO] artifact org.scala-tools:maven-scala-plugin: checking for updates from scala-tools.org [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for updates from scala-tools.org [INFO] [clean:clean] [INFO] [scala:compile {execution: default}] [INFO] Checking for multiple versions of scala [WARNING] No source files found. [INFO] [scala:testCompile {execution: default}] [INFO] Checking for multiple versions of scala [WARNING] No source files found. [INFO] [site:attach-descriptor] [INFO] Preparing source:jar [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [source:jar {execution: attach-sources}] [INFO] [install:install] [INFO] Installing /Users/dpp/tmp/liftweb/pom.xml to /Users/dpp/.m2/repository/net/liftweb/lift/1.0.2/lift-1.0.2.pom [INFO] [INFO] Building Lift Utils [INFO] task-segment: [clean, install] [INFO] [INFO] artifact net.sf.alchim:yuicompressor-maven-plugin: checking for updates from scala-tools.org [INFO] [clean:clean] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [yuicompressor:compress {execution: default}] [INFO] nb warnings: 0, nb errors: 0 [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org.snapshots [INFO] artifact org.mortbay.jetty:jetty: checking for updates from central Downloading:http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty/6.1.20/j... Downloading:http://scala-tools.org/repo-snapshots/org/mortbay/jetty/jetty/6.1.20/... Downloading:http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.1.20/jetty-6 6K downloaded Downloading:http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-util/6.1...
[Lift] Re: Alternate Lift builds?
Care to take a look at the pom.xml files in the dpp_wip_actorized branch and make them to the right thing? Also, do you have rights on Hudson/Nexus on scala-tools.org? If not, please send mail to ad...@scala-tools.org On Sat, Sep 19, 2009 at 12:58 PM, Indrajit Raychaudhuri indraj...@gmail.com wrote: Acknowledged. Using property to activate profile allows greater flexibility and would be preferred option indeed. Cheers, Indrajit On 20/09/09 1:19 AM, Kevin Wright wrote: Quite right, it's classifier and not qualifier. It was a typo, honest! :-p Nice thinking about using profiles, lets you keep the pom in sync between trunk and the branch, should help nicely with those merges One change I would make though is to activate the profile by way of a property: http://maven.apache.org/guides/introduction/introduction-to-profiles.html It doesn't make a great deal of difference at this level, but I've found it can really make things a lot more flexible if you want to start mixing in configurations based on architecture or JVM version, or if you're working with multi-module builds. http://maven.apache.org/guides/introduction/introduction-to-profiles.html On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri indraj...@gmail.com mailto:indraj...@gmail.com wrote: Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: profiles profile iddppactor/id activation activeByDefaultfalse/activeByDefault /activation dependencies dependency groupIdnet.liftweb/groupId artifactIdlift-actor/artifactId version1.1-SNAPSHOT/version classifierdpp/classifier /dependency /dependencies /profile /profiles See http://maven.apache.org/pom.html#Profiles for more. Now if you invoke mvn -Pdppactor compile, the dependency would be on lift-actor-1.1-SNAPSHOT-dpp.jar! To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the same technique (another profile). Just use the optional config parameter 'classifier' See: http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier Now Hudson build would just need the extra param (-P) to do the needful. Hope this helps. Cheers, Indrajit On Sep 19, 4:38 am, David Pollak feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: How do I hook up JS events to onsubmit on a lift-controlled form?
On Sat, Sep 19, 2009 at 1:30 PM, DMB combust...@gmail.com wrote: That's what I ended up doing. Any particular reason why JS events can't be passed through? Granted, it's a nice to have, but it could save ex-RoR (and ex-ASP.NET) developers a few WTFs. :-) Yeah... when you include the form=post we've had some discussions about which attributes should be copied over. Right now, it's id, class, and target. I'm making the list of attribute configurable and adding style and onsubmit as default copy attributes. On Sep 14, 11:46 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:02 PM, DMB combust...@gmail.com wrote: Hi, folks, I'm moving one of my old ruby based apps over to Scala/Lift to learn Lift better, and here's one thing I was not able to find how to do. Some forms in the old app have onsubmit event on the form tag which combines / pre-validates things in the form, puts the output into a hidden field and wipes some of the fields prior to submitting. I can't seem to find a way to hook up a JS event to a Lift form defined like so: lift:IndexView.show form=post lift:IndexView.show form=post id=foobar ... Then hook your onsubmit up to the form element with the id foobar. Does that work? If I add onsubmit event to this tag, it simply gets ignored. How do I do this in Lift? Also, Ruby on Rails conveniently appends an integer value at the end of script and CSS urls, which comes in handy when you want to maximize caching but don't want to risk serving the old scripts and stylesheets to the users. Is there a corresponding mechanism for this in Lift? Thank you. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Alternate Lift builds?
Profiles are nice, but I think just using -P should be ok here (instead of properties). Although I do like the properties approach, I usually use that to simplify builds in the case where I have a system with a guaranteed property. At work we usually use a profile to attach the hudosn build version to our version. I personally don't like classifiers as you'd have to make all your nested dependencies also use the same classifier to really test the system. - Josh On Sat, Sep 19, 2009 at 3:49 PM, Kevin Wright kev.lee.wri...@googlemail.com wrote: Quite right, it's classifier and not qualifier. It was a typo, honest! :-p Nice thinking about using profiles, lets you keep the pom in sync between trunk and the branch, should help nicely with those merges One change I would make though is to activate the profile by way of a property: http://maven.apache.org/guides/introduction/introduction-to-profiles.html It doesn't make a great deal of difference at this level, but I've found it can really make things a lot more flexible if you want to start mixing in configurations based on architecture or JVM version, or if you're working with multi-module builds. http://maven.apache.org/guides/introduction/introduction-to-profiles.html On Sat, Sep 19, 2009 at 6:28 PM, Indrajit Raychaudhuri indraj...@gmail.com wrote: Dependency classifier might be close to what you'd need. See the 'Classifier' section in http://maven.apache.org/pom.html#Dependencies So, you could create a build profile (disabled by default), say dppactor as so: profiles profile iddppactor/id activation activeByDefaultfalse/activeByDefault /activation dependencies dependency groupIdnet.liftweb/groupId artifactIdlift-actor/artifactId version1.1-SNAPSHOT/version classifierdpp/classifier /dependency /dependencies /profile /profiles See http://maven.apache.org/pom.html#Profiles for more. Now if you invoke mvn -Pdppactor compile, the dependency would be on lift-actor-1.1-SNAPSHOT-dpp.jar! To create lift-actor-1.1-SNAPSHOT-dpp.jar, you can follow the same technique (another profile). Just use the optional config parameter 'classifier' See: http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#classifier Now Hudson build would just need the extra param (-P) to do the needful. Hope this helps. Cheers, Indrajit On Sep 19, 4:38 am, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Is there a clean and easy way that anyone knows of to have Hudson do alternate builds from different Git branches and put them in SNAPSHOTS with different versions (e.g., 1.1-SNAPSHOT_DPP_ACTOR)? I am making some wholesale changes to Lift's use of Actors (basically getting rid of all Scala Actors and creating some simple traits that Akka or other systems can implement so that Lift-based systems can choose different Actor implementations. Given that these changes are non-trivial, I'd like to run a parallel version of Lift for at least a few weeks and get feedback on the API changes and performance before committing the code to the main branch, but I want the code to available in Hudson. So... any ideas? Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: ANNOUNCE: New functionality for Mapper logging with breaking changes
Hello, Shouldn't S.logQuery and S.queryLog be updated as well or deprecated if they're not going to be used the way they were as parameters to DB.addLogFun? Thanks, Vassil --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---