[Lift] Re: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)
I renamed it that because this is about making it easier for newbies to get up and running with eclipse - its not a problem per-say, as everything compiles just fine without it, but this will no doubt save a lot of head scratching which can only be a good thing :-) On Apr 20, 1:07 am, Miles Sabin mi...@milessabin.com wrote: I think that all of this sounds generally positive, but I have to ask ... Why is this thread (now) titled Improving out Eclipse experience? What is Eclipse doing wrong here? --~--~-~--~~~---~--~~ 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 helloworld on App Engine: java.lang.NoClassDefFoundError: Could not initialize class net.liftweb.http.LiftRules$
Thats odd - I added: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version6.1.16/version scopeprovided/scope /dependency to my pom.xml, but still eclipse cannot find the appropriate class? Cheers, Tim On Apr 20, 8:27 am, Timothy Perrett timo...@getintheloop.eu wrote: What would I need to change to access this newer snapshot? When the changes are pushed into dpp/master, all you will need to do is change the version in your pom.xml to 1.1-SNAPSHOT and ensure you have both the releases and snapshot repositories defined in your pom. 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: Lift works on Google App Engine (within the confines of what's possible)
If GAE is not a good home for Lift applications, can you recommend some alternate hosts? Are there any free alternates? Thanks, Sam Reid On Apr 17, 3:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've just committed a version of Lift (including the Lift Example) that runs on the Google App Engine. You can see the running demo at:http://liftdemo.appspot.com/ What's missing: - Mapper and Mapper-related stuff. You can use JPA. - Comet. GAE's lack of thread or message queue support is a huge limitation. - Actor-based session-shutdown notification is disabled on GAE. - There's no session affinity guarantee, so there may be problems with migrating sessions (I'll be working with the Google folks on this issue) Okay... so you can build apps on GAE... I have to wonder... who would want to? GAE gives you a highly scalable platform to build CRUD apps. Without a back-end messaging infrastructure, long running processes, threads, inter-session messaging, etc. there's not much in the way of exciting apps to build. Here are a list of apps that could not be built with GAE: - Twitter (requires a message bus and back-ground processing) - Facebook (has many of Twitter's requirements) - GoogleTalk - A travel site (the 30 second request duration means that looking stuff up on a back end service is not possible) - A multi-player game So... on a $100/mo box from CalPop, I can run a service that will scale to 20M requests per day. If I'm doing 20M requests per day, I've got a business where I want more control over my infrastructure than GAE gives me. That might be Amazon EC2 where I can power-up and down boxes at will. There are also a number of different scalable storage solutions on Amazon. I just can't for the life of me figure out why anyone would want to put a Java/Scala app on GAE. 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] Scala Exception
Hi : need help for the following again. Thanks ^.^ [WARNING] Exception in thread main java.lang.RuntimeException: malformed Scala signature of Room at 12608; reference type _1 of none refers to nonexisting s ymbol. [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.errorBadS ignature(UnPickler.scala:762) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala: 172) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef $1.apply(UnPic kler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef $1.apply(UnPic kler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef (UnPickler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 254) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until (PickleBuf fer.scala:127) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 286) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until (PickleBuf fer.scala:127) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler
[Lift] ajax form that submits multiple values?
I am just getting started with lift and I am now trying to change a normal form to an ajax form but the method processEntryAdd is never called. def addUser(xhtml : Group) : NodeSeq = { var firstName = var lastName = def processEntryAdd() { Log.info(processEntryAdd: + firstName + , + lastName) } SHtml.ajaxForm( bind(entry, xhtml, firstName - SHtml.text(firstName, (x) = { Log.info(Setting firstName to + x); firstName = x }), lastName - SHtml.text(lastName, (x) = { Log.info(Setting lastName to + x); lastName = x }), submit - SHtml.submit(Add user, processEntryAdd), )) } Any idea how to achieve what I am trying to do, or why the code above doesn't work. The values of the two form fields are submitted when the button is pressed and the two local variables firstName and lastName are set but the function associated with SHtml.submit isn't called. Thanks! PS I also asked this question here: http://stackoverflow.com/questions/760097/scala-lift-framework-ajax-form-that-submits-multiple-values --~--~-~--~~~---~--~~ 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: Scala Exception
Did you clean first? Is this new code? Can you copy the code in that it's complaining about? In the future, include more information in the original message. You'll get more help if you make it easy to help you. On Apr 20, 1:26 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Hi : need help for the following again. Thanks ^.^ [WARNING] Exception in thread main java.lang.RuntimeException: malformed Scala signature of Room at 12608; reference type _1 of none refers to nonexisting s ymbol. [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.errorBadS ignature(UnPickler.scala:762) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol(UnPickler.scala: 172) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef $1.apply(UnPic kler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef $1.apply(UnPic kler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef (UnPickler.scala:714) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 254) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until (PickleBuf fer.scala:127) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 286) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef $1.apply(UnPickl er.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala:139) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef (UnPickler.scala:715) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ 3.apply(UnPickler.scala:255) [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until (PickleBuf fer.scala:127) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler $UnPickle.scala$too ls$nsc$symtab$classfile$UnPickler$UnPickle$$readType(UnPickler.scala: 255) [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ $anonfun$ scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef
[Lift] Re: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)
On Sun, Apr 19, 2009 at 8:07 PM, Miles Sabin mi...@milessabin.com wrote: I think that all of this sounds generally positive, but I have to ask ... Why is this thread (now) titled Improving out Eclipse experience? What is Eclipse doing wrong here? Cheers, Miles TBH my biggest complaint when using lift with eclipse is my complaint every time I use multiple plugins with eclipse, and that is the cross-plugin integration (particularly maven + scala or maven + javascript). In general, things work, but there are a few large potholes you have to avoid. Being a regular driver, I sometimes forget these potholes exist (as I learned to instinctively avoid them.) Actually the Add Scala Nature feature (from so long ago) and the new aspects-for-working-around-the-jdt provides fixes for 90% of the integration problems I had. I don't really see any specific thing in the plugin to make this better, just as things show up, fixing minor issues and playing nicely. The second biggest complaint would be mismatched scala version issues. Lift may be compiled against scala 2.7.3, so i need to make sure that the eclipse compiled files do not mingle with the maven compiled files. This way, in production I have everything against scala 2.7.3 but inside eclipse it's using Scala 2.8.0-xxx or 2.74.-rc1. In general this is fine, but sometimes I cannot run/debug applications in eclipse due to the mismatch (very fun exceptions on startup). I've been working on making this reproducable (and therefore fixable), but have not yet done so. In general, on my work machine I run similar version (plugin == maven) so it's not an issue. However this means I'm usually behind at work for bug fixes and such. It would be nice if the plugin could use its own internal compiler for IDE features (auto-complete, refactoring, outlines, etc) but allow me to specify a version of scala to use when compiling .class files so we don't have this mismatch. I realize this is a huge feature request, but I don't mind helping contribute to make it happen ;) So far you've already taken the plugin from something only us bleeding edge folk would use, to something my coworkers are using without complaining. Kudos! and please keep up the good work. - Josh --~--~-~--~~~---~--~~ 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 helloworld on App Engine: java.lang.NoClassDefFoundError: Could not initialize class net.liftweb.http.LiftRules$
Ooops!! Just realized i posted this in the wrong place. Sorry guys. On Apr 20, 8:56 am, Timothy Perrett timo...@getintheloop.eu wrote: Thats odd - I added: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version6.1.16/version scopeprovided/scope /dependency to my pom.xml, but still eclipse cannot find the appropriate class? Cheers, Tim On Apr 20, 8:27 am, Timothy Perrett timo...@getintheloop.eu wrote: What would I need to change to access this newer snapshot? When the changes are pushed into dpp/master, all you will need to do is change the version in your pom.xml to 1.1-SNAPSHOT and ensure you have both the releases and snapshot repositories defined in your pom. 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: Improving our eclipse experience (was: Why can eclipse never find: org.mortbay.jetty.webapp.WebAppContext)
Thats odd - I added: dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version6.1.16/version scopeprovided/scope /dependency to my pom.xml, but still eclipse cannot find the appropriate class? 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: Object typecast to Mapper
Hi Amit, Try that one def bindObject[T : AnyRef](className: Class[T]): Option[Object] = { val sClassName = className.getPackage.getName.concat(.Wrap.concat(className.getSimpleName)) try { Some(Class.forName(sClassName.replaceFirst(com.vtech, com.vtech.appxtension)).newInstance.asInstanceOf[T]) } catch { case e: Exception = try { Some(Class.forName(className.getName).newInstance.asInstanceOf[T]) } catch { case e1: Exception = println(e1.printStackTrace) None } } } Regards, Sergey On Mon, Apr 20, 2009 at 3:41 PM, Amit Kumar Verma cdac.a...@gmail.comwrote: Hi All, This is a sample function for making an object from string at run time. Here we are not casting the object but creating one. I wanted the same thing for casting the object. public static Object bindObject(Class className) { Object objOutput = null; try { String sClassName = className.getPackage().getName().concat (.Wrap.concat(className.getSimpleName())); objOutput = Class.forName(sClassName.replaceFirst (com.vtech, com.vtech.appxtension)).newInstance(); } catch (Exception e) { try { objOutput = Class.forName(className.getName ()).newInstance(); } catch (Exception e1) { e1.printStackTrace(); } } return objOutput; } Thanks to all for kind support.. Amit Kumar Verma On Apr 18, 8:51 pm, Timothy Perrett timo...@getintheloop.eu wrote: So your talking about reflection right? Take a look at scala Manifests (which aide getting round type erasure) - other than that scala supports all the normal reflection tooling that Java does. Tim On 18/04/2009 06:56, Amit Kumar Verma cdac.a...@gmail.com wrote: Scala is a static language, so the class for casting must be known at compile time. It's not possible to construct a String at runtime and cast an object into a class represented by that String. But we use this feature in Java for casting the objects. --~--~-~--~~~---~--~~ 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: Liftweb without Maven?
Wow, strong words. I'm wondering what it was about maven that caused this productivity loss? So far my shop has not run into this, in fact, we've had the opposite vs. Ant. Granted, Raven and Buildr are different beasts. I apologize for the strong words. I think I was still angry from reading some of David Pollack's strong negative comments about Ruby in other mailing list posts(for example, http://markmail.org/message/2chixvplljdjpogc#query:scala%20lift%20with%20buildr+page:1+mid:7f74nyoyanxq2kir+state:results), and some of that anger got funneled into my post. That said, I have long thought that a DSL based inside of a general purpose scripting language is always going to be far more productive than a DSL based in XML (http://www.martinfowler.com/articles/rake.html, http://blog.labnotes.org/2007/04/18/introducing-buildr-or-how-we-cured-our-maven-blues/). Before I felt so strongly against maven, however, I also had the privilege of using it and found that our team was spending far too much time dealing with our build system. We could not find the documentation we needed, debugging was difficult, and programming in Jelly just isn't as productive as programming in full scripting languages like perl/python/ruby/groovy/insert-favorite-language- here. I thought that Maven was as more unwieldy than Ant as it was more powerful. That said, using buildr did not go flawlessly either. The main issues, however, were not buildr itself, but getting it's jetty plugin to work. I'm guessing that buildr does not have nearly the backing in the Java community as Maven, which is a pity. Finally, I have not tried SBT, but I will look into it as well. My main goal, though, is to try out lift! I am inlining the buildr buildfile I created for Lift's hello world example below. #!/usr/bin/ruby require 'buildr/scala' require 'buildr/java' =begin Differences between maven pom.xml and this buildr file: 1. I could not get buildr to build this project without setting my environment variable SCALA_HOME to point to my scala distribution. 2. Many jars had to be specified manually that did not need not specified in the maven pom.xml 3. They jetty plugin seems to force it's own version, 6.1.3, though the source code documentation tauntingly suggests a way to specify your own version To run the example: buildr helloworld:run =end VERSION_NUMBER = 1.0.0 GROUP = helloworld repositories.remote http://www.ibiblio.org/maven2/; repositories.remote http://scala-tools.org/repo-releases; Artifacts = struct( :scala = group('scala-library', 'scala-compiler', :under = org.scala-lang, :version = 2.7.3), :lift = group('lift-util', 'lift-webkit', 'lift-mapper', :under = net.liftweb, :version = 1.0), :servlet = javax.servlet:servlet-api:jar:2.5, :junit = junit:junit:jar:4.5, :jetty = group(jetty, jetty-util, servlet-api-2.5, jsp-2.1, jsp-api-2.1, :under = org.mortbay.jetty, :version = 6.1.6), #cannot get range syntax to work :log4j = log4j:log4j:jar:1.2.14, :commons = commons-fileupload:commons-fileupload:jar:1.2.1 ) JettyJSP = Artifacts.jetty.select {|jar| jar.name =~ /jsp/ } JettyServlet = Artifacts.jetty.find {|jar| jar.name =~ /servlet/ } #hack to force my own version of jetty to load Java.classpath.concat Artifacts.jetty.map {|a| a.to_spec} require 'buildr/jetty' desc The HelloWorld project define helloworld do project.version = VERSION_NUMBER project.group = GROUP compile.with [:lift, :servlet, :junit, :jetty].map {|sym| Artifacts.send sym } package(:war).with :libs = [:scala, :lift, :log4j, :commons].map { | sym| Artifacts.send sym } + [JettyJSP, JettyServlet ] =begin this does not work. The war file never seems to get deployed. jetty.use package(:war) do jetty.deploy(#{jetty.url}/. package(:war)) end task :run = jetty:use =end #workaround for the commented-out code above task :run = package(:war) do jetty = Buildr::Jetty.new(jetty, http://localhost:8080;) jetty.send :fire #method is protected jetty.deploy #{jetty.url}/, package(:war) sleep end end --~--~-~--~~~---~--~~ 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 works on Google App Engine (within the confines of what's possible)
Yes, for those who wish to tinker and share their tinkerings with the world, the zero cost entry point* is good. I'm also interested in any opinions of which free services are better than GAE for Lift apps. Cheers Jeremy * - yes, I know there is a billing model for increased bandwidth and other add-ons with GAE. 2009/4/20 samreid samrr...@gmail.com If GAE is not a good home for Lift applications, can you recommend some alternate hosts? Are there any free alternates? Thanks, Sam Reid On Apr 17, 3:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I've just committed a version of Lift (including the Lift Example) that runs on the Google App Engine. You can see the running demo at: http://liftdemo.appspot.com/ What's missing: - Mapper and Mapper-related stuff. You can use JPA. - Comet. GAE's lack of thread or message queue support is a huge limitation. - Actor-based session-shutdown notification is disabled on GAE. - There's no session affinity guarantee, so there may be problems with migrating sessions (I'll be working with the Google folks on this issue) Okay... so you can build apps on GAE... I have to wonder... who would want to? GAE gives you a highly scalable platform to build CRUD apps. Without a back-end messaging infrastructure, long running processes, threads, inter-session messaging, etc. there's not much in the way of exciting apps to build. Here are a list of apps that could not be built with GAE: - Twitter (requires a message bus and back-ground processing) - Facebook (has many of Twitter's requirements) - GoogleTalk - A travel site (the 30 second request duration means that looking stuff up on a back end service is not possible) - A multi-player game So... on a $100/mo box from CalPop, I can run a service that will scale to 20M requests per day. If I'm doing 20M requests per day, I've got a business where I want more control over my infrastructure than GAE gives me. That might be Amazon EC2 where I can power-up and down boxes at will. There are also a number of different scalable storage solutions on Amazon. I just can't for the life of me figure out why anyone would want to put a Java/Scala app on GAE. 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 -- Jeremy Mawson Senior Developer | Online Directories Sensis Pty Ltd 222 Lonsdale St Melbourne 3000 E: jeremy.maw...@sensis.com.au --~--~-~--~~~---~--~~ 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 to create dynamic table in response
Is it what you looking for? http://wiki.liftweb.net/index.php/Lift_View_First On Mon, Apr 20, 2009 at 4:37 PM, pravin pravinka...@gmail.com wrote: Hi, I want to create dynamic table into response. I have list of objects just i want to place them into table. Also i have to to place these rows conditionally.So i can use if else ,for loop in HTML code We can do this easily in JSP.(I am new to lift framework) Thanks in advance...! --~--~-~--~~~---~--~~ 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: [scala] Google App Engine for Scala!
Hi, Could anyone share the impelmentation of your JPA demo in GAE? Actually I encounter some problem during deploy them in GAE. a. The keys, GAE do not like Long as Key in OneToMany relation, So I use the Key type provided by GAE b. Model.mergeAndFlush(author) did not work as I expected. It could not update, and only do insert. So I changed the code if (author.id == null) { Model.persistAndFlush(author) } else { val tmp = Model.find(classOf[Author], author.id) tmp.get.name = author.name Model.mergeAndFlush(tmp.get) } I think it is some attach/detach problem. Thanks 2009/4/15 Derek Chen-Becker dchenbec...@gmail.com Doh. There are my Hibernate roots showing through. HQL doesn't require the select (it's implicit if you only have one class to select from). I don't like inconsistent behavior, so that's a little strang about find working again. 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: [scala] Google App Engine for Scala!
Hi, On Mon, Apr 20, 2009 at 10:16 PM, 刘浩 sniperliu...@gmail.com wrote: Hi, Could anyone share the impelmentation of your JPA demo in GAE? Actually I encounter some problem during deploy them in GAE. a. The keys, GAE do not like Long as Key in OneToMany relation, So I use the Key type provided by GAE b. Model.mergeAndFlush(author) did not work as I expected. It could not update, and only do insert. So I changed the code if (author.id == null) { Model.persistAndFlush(author) } else { val tmp = Model.find(classOf[Author], author.id) tmp.get.name = author.name Model.mergeAndFlush(tmp.get) } I think it is some attach/detach problem. Yes, I have also the same phenomenon, and I also have guessed that there must be such an attache/detach problem. 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 Fax +81-22-224-8773 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: [scala] Google App Engine for Scala!
Hi, On Sun, Apr 12, 2009 at 11:00 PM, Atsuhiko Yamanaka FYI, it must be trivial, but I have confirmed that Lift(org.scala_libs.jpa) has persistence via BigTable through JPA on GAE/J by using entity classes in Java! FYI, I have confirmed that, by using datanucleus-enhancer-1.1.2[1], Scala can use JPA/JDO on GAE/J without writing any entity classes in Java. [1] http://sourceforge.net/project/showfiles.php?group_id=222750package_id=270301 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 Fax +81-22-224-8773 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: [scala] Google App Engine for Scala!
Thanks a lot. I will try. 2009/4/20 Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com Hi, On Sun, Apr 12, 2009 at 11:00 PM, Atsuhiko Yamanaka FYI, it must be trivial, but I have confirmed that Lift(org.scala_libs.jpa) has persistence via BigTable through JPA on GAE/J by using entity classes in Java! FYI, I have confirmed that, by using datanucleus-enhancer-1.1.2[1], Scala can use JPA/JDO on GAE/J without writing any entity classes in Java. [1] http://sourceforge.net/project/showfiles.php?group_id=222750package_id=270301 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 Fax +81-22-224-8773 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: Liftweb without Maven?
Maven does not really use Jelly anymore (in Maven2). I agree a Maven1 was rather ridiculous. Maven2 takes the idea that the pom should just be configuration + declaration, not implementation details. It's a breath of fresh air from other build tools (even Maven1). The issue still becomes how do you implement plugins so as to keep the declare, don't implement rules. I would recommend just looking at the general idea, because it will change your opinion of build tools. It still has a long way to come, but the idea of it, I think, has a lot of potential, more so than task-based build utilities. -Josh --~--~-~--~~~---~--~~ 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: [scala] Google App Engine for Scala!
Hi, On Mon, Apr 20, 2009 at 11:24 PM, 刘浩 sniperliu...@gmail.com wrote: Thanks a lot. I will try. I want to share my Author.scala and Book.scala for further references. I have pasted them at http://gist.github.com/98561 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 Fax +81-22-224-8773 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] where's the wiki
Hi Where exactly is the wiki referenced from on the main liftweb.net site? I can't see any links 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: Error message undecipherable
There are three constructors for UnprefixedAttribute (used to add unprefixed attributes to XML elements). All three return an instance of scala.xml.MetaData (attributes are a subclass of MetaData). The first takes: a String, an Option containing a Seq of scala.xml.Nodes, and another piece of MetaData (you can string them together) The second constructor takes: a String, another String, and the MetaData The final option takes: A string, a Seq of scala.xml.Nodes, and the MetaData. What you are providing is: a java.lang.String, a tuple: (String, net.liftweb.http.js.JsExp), and the MetaData So you need to look at the ajaxCall method and figure out what you are doing wrong. Does this help? Chas. glenn wrote: When I try to compile the following code: bind(ex, xhtml, button1 - button onclick={SHtml.ajaxCall(Str (Button1),ajaxFunc _)}Press me/button ) I get this error message: overloaded method constructor UnprefixedAttribute with alternatives (String,Option[Seq[scala.xml.Node]],scala.xml.MetaData) scala.xml.UnprefixedAttribute and (String,String,scala.xml.MetaData)scala.xml.UnprefixedAttribute and (String,Seq[scala.xml.Node],scala.xml.MetaData) scala.xml.UnprefixedAttribute cannot be applied to (java.lang.String, (String, net.liftweb.http.js.JsExp),scala.xml.MetaData) Can anyone decipher for me? --~--~-~--~~~---~--~~ 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] developing Scala/Lift using Eclipse
Hello all, I just started learning Scala and came across Lift. I am using Eclipse Ganymede with the Scala-Plugin. How do I fully include the Lift- sources to navigate (Strg+Click) into the Lift-Classes? Currently Eclipse does not even understand the absolute _root_-package- thingy. It's pretty annoying if everything is red and only maven knows if it compiles correctly :( Any Hint? Thanks in advance, Kai --~--~-~--~~~---~--~~ 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] Minimal Authorization API for Lift
Hello, I'm trying to integrate lift with CAS. It looks like I'll need to extend HttpAuthentication and UnauthorizedResponse. I looked at the OpenId sources though and they don't seem to extend or make reference to either of these traits. It appears I'll also need to implement MetaMegaProtoUser as well. MetaMegaProtoUser appears to contain code for defining all its own menus (including password change urls) How is its sitemap method invoked? Why should the user class contain those functions? Why not at least a related template or snippet? I don't know enough to criticize but I'm certainly puzzled that these concerns weren't separated. --~--~-~--~~~---~--~~ 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: developing Scala/Lift using Eclipse
I've seen that problem, though I don't recall exactly when. Perhaps your your classpath variables aren't set up correctly? With your project highlighted in the project explorer, try the following menu sequence: Project Properties Java Build Path Libraries. On my version, I see a bunch of libraries that start out M2_REPO, and if I scroll the library window to the right I see that M2_REPO is successfully resolved to: - /home/lee/.m2/repository... If you don't see the libraries resolved correctly to your repository, Add Variable .. Configure Variables..., gives you the chance to set the M2_REPO. Failing that, here's some other voodoo you might try. * clean all * make a phantom change to the M2_REPO variable anyway, then and change it back. * reinstall eclipse classic 3.4.2, with the 2.7.3 scala plugin and no other plugins. Lee On Mon, Apr 20, 2009 at 2:40 PM, kmed k...@meder.info wrote: Hello all, I just started learning Scala and came across Lift. I am using Eclipse Ganymede with the Scala-Plugin. How do I fully include the Lift- sources to navigate (Strg+Click) into the Lift-Classes? Currently Eclipse does not even understand the absolute _root_-package- thingy. It's pretty annoying if everything is red and only maven knows if it compiles correctly :( Any Hint? Thanks in advance, Kai --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---