[Lift] Re: Need Help with the RuntimeException
And need help with this too... BufferUnderFlowException?? java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Buffer.java:398) at java.nio.HeapCharBuffer.get(HeapCharBuffer.java:117) at scala.io.BufferedSource$$anon$2.init(BufferedSource.scala:77) at scala.io.BufferedSource.init(BufferedSource.scala:74) at scala.io.BufferedSource$$anon$1.init(BufferedSource.scala:34) at scala.io.BufferedSource$.fromInputStream(BufferedSource.scala:32) at scala.io.BufferedSource$.fromInputStream(BufferedSource.scala:27) at scala.io.BufferedSource$.fromInputStream(BufferedSource.scala:23) at scala.io.Source$.fromInputStream(Source.scala:215) at scala.io.Source$$anonfun$fromInputStream$2.apply(Source.scala:215) at scala.io.Source$$anonfun$fromInputStream$2.apply(Source.scala:215) at scala.io.BufferedSource$$anon$1.reset(BufferedSource.scala:35) at scala.io.Source.getLine(Source.scala:272) at scala.io.Source.report(Source.scala:368) at scala.io.Source.reportError(Source.scala:355) at scala.io.Source.reportError(Source.scala:344) at scala.xml.parsing.MarkupParser$class.reportSyntaxError (MarkupParser.scala:1113) at net.liftweb.util.PCDataXmlParser.reportSyntaxError (PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.reportSyntaxError (MarkupParser.scala:1117) at net.liftweb.util.PCDataXmlParser.reportSyntaxError (PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.xEndTag(MarkupParser.scala: 378) at net.liftweb.util.PCDataXmlParser.xEndTag(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 683) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at
[Lift] Re: [scala] Google App Engine for Scala!
Hi, On Sat, Apr 11, 2009 at 10:43 PM, David Pollak feeder.of.the.be...@gmail.com wrote: GAE supports JPA and there's a lot of Lift JPA support... so maybe we can update the example code to use JPA and we'll have persistence via BigTable. I have integrated to JPADemo to lift_example, and everybody can try it at http://lift-example.appspot.com/jpademo/ http://lift-example.appspot.com/jpademo/authors/list http://lift-example.appspot.com/jpademo/books/list The data has been really stored in BigTable! As I wrote, it has been done by JPA with entity classes written in Java. 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 Mon, Apr 13, 2009 at 6:08 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Cool, so the ScalaJPA stuff works fine under GAE? I have some problems. For example, in some cases, ScalaEtityManager#find could not find the object. I mean that it could not find an object, Model.find[Author](classOf[Author], id) , but I got it by the following, Mode.createNamedQuery[Author](findAllAuthors).getResultList().filter(_.getId == id)(0) I, however, have guessed that problem has not come from ScalaJPA. It may be from DataNucleus or its driver for GEA's datastore. I have encountered several weired behaviors in using that datastore. 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: label tag for generated input
I know it, but I prefer to leave original mark-up in template, so html-coder can update it later. On Tue, Apr 14, 2009 at 1:32 AM, Timothy Perrett timo...@getintheloop.eu wrote: Errrmm, I think your mistaken in your example. I think you mean: lift:someSnippet form=post p label for=usernameUsername/label br/ f:username f:id=username / /p pf:submit //p /lift:someSnippet You don't need to manually populate content inside the bind placeholders - its removed anyway so your not really gaining anything by doing this. The key is understanding that attributes with the appropriate prefix will be merged into the resulting server side element. Cheers, Tim On 13/04/2009 21:20, Dmitry Lipovoi dmitry.lipo...@gmail.com wrote: ... or You can set element's id manually in template: lift:someSnippet form=post p label for=usernameUsername/label br/ f:username f:id=usernameinput id=username type=text name=username value=username//f:url /p p f:submitinput type=submit value=Do It!//f:submit /p /lift:someSnippet On Mon, Apr 13, 2009 at 11:58 PM, Charles F. Munat c...@munat.com wrote: The for attribute in the label element points at the input element's *id*, not it's name. Also, where is the label? You've got an element, but no label (unless I'm still asleep). http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1 So this is actually quite easy: bind(login, xhtml, username - label for=usernameUsername {SHtml.text(username, username = _, (id, username))}/label, ... That names for the inputs are generated doesn't matter because the for attribute refers to the id, not the name. You could, of course, use David's method but add something that sets the id attribute = the name attribute since the name is going to be unique on the page. Chas. João Pereira wrote: it's looks great and works great too. :) thank you On Mon, Apr 13, 2009 at 5:18 PM, David Pollak feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com wrote: def label(in: Elem): NodeSeq = label for={in \ @name} / ++ in bind(login, xhtml, username - label(SHtml.text(username, username(_))) How does that look? 2009/4/13 João Pereira joaomiguel.pere...@gmail.com mailto:joaomiguel.pere...@gmail.com Hello, I have the following snippet: HTML: div id=loginlift:login.login form=post login:username / login:password / login:submit / /lift:login.login/div Scala: bind(login, xhtml, username-SHtml.text(username,username(_)), password-SHtml.text(password, password(_)), submit -SHtml.submit(login, authenticate)) Rendered HTML is: div id=loginform method=post action=/login input name=F1177922287215MUE type=text value=zxczxc / input name=F1177922287216DXQ type=text value=zxcczx / input name=F1177922287217EXX type=submit value=login / /form/div What is the best strategy to have a label for=... HTML tag rendered for each input field? The desired output will be: div id=loginform method=post action=/login *label for=F1177922287215MUE/* input name=F1177922287215MUE type=text value=zxczxc / *label for=F1177922287216DXQ/* input name=F1177922287216DXQ type=text value=zxcczx / input name=F1177922287217EXX type=submit value=login / /form/div thanks -- João Miguel Pereira, PMP http://jpereira.eu http://www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com mailto:joaomiguel.pere...@gmail.com (351) 96 275 68 58 -- 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 -- João Miguel Pereira, PMP http://jpereira.eu http://www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com mailto:joaomiguel.pere...@gmail.com (351) 96 275 68 58 --~--~-~--~~~---~--~~ 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] Liftweb without Maven?
I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX --~--~-~--~~~---~--~~ 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: Need Help with the RuntimeException
It's likely that you saved your file with the wrong encoding. All XML and HTML files in Lift must be saved with a UTF-8 encoding. On Mon, Apr 13, 2009 at 8:47 PM, sailormoo...@gmail.com sailormoo...@gmail.com wrote: Thanks but the mvn test still gives ambigulous exceptions. A filename and a line number would help more. java.util.NoSuchElementException at scala.RandomAccessSeq$$anon$13.next(RandomAccessSeq.scala:165) at scala.xml.parsing.MarkupParser$class.normalizeAttributeValue (MarkupParser.scala:1191) at net.liftweb.util.PCDataXmlParser.normalizeAttributeValue (PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.xAttributeValue (MarkupParser.scala:334) at net.liftweb.util.PCDataXmlParser.xAttributeValue (PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.xAttributes (MarkupParser.scala:288) at net.liftweb.util.PCDataXmlParser.xAttributes (PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.xTag(MarkupParser.scala:365) at net.liftweb.util.PCDataXmlParser.xTag(PCDataMarkupParser.scala:91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 667) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala: 505) at net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala: 682) at net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala: 481) at net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala: 91) at scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala: 206) at net.liftweb.util.PCDataXmlParser.document(PCDataMarkupParser.scala: 91) at net.liftweb.util.PCDataXmlParser$.apply(PCDataMarkupParser.scala: 102) at org.plummtw.jinrou.AppTest.wellFormed$1(AppTest.scala:60) at org.plummtw.jinrou.AppTest$$anonfun$wellFormed$1$1.apply (AppTest.scala:48) at org.plummtw.jinrou.AppTest$$anonfun$wellFormed$1$1.apply (AppTest.scala:48) at scala.Iterator$class.foreach(Iterator.scala:414) at scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45) at scala.Iterable$class.foreach(Iterable.scala:256) at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24) at org.plummtw.jinrou.AppTest.wellFormed$1(AppTest.scala:48) at org.plummtw.jinrou.AppTest.testXml(AppTest.scala:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
[Lift] Re: Liftweb without Maven?
Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with all the dependency management by yourself :( Can you specify what do you expected from maven? what were the problems encountered? On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX -- João Miguel Pereira, PMP http://jpereira.eu http://www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com (351) 96 275 68 58 --~--~-~--~~~---~--~~ 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?
Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient projects like the results produced by Lift's archetypes? ... so that people can just download that project zip file with the ant build in it and then start building the app on top of that? ... would that work ? Br's, Marius On Apr 14, 2:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote: Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with all the dependency management by yourself :( Can you specify what do you expected from maven? what were the problems encountered? On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX -- João Miguel Pereira, PMPhttp://jpereira.euhttp://www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com (351) 96 275 68 58 --~--~-~--~~~---~--~~ 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?
On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com wrote: Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient projects like the results produced by Lift's archetypes? ... so that people can just download that project zip file with the ant build in it and then start building the app on top of that? ... would that work ? Nice angle! Or perhaps have an online service where you can specify the archetype details and have a compressed payload downloaded? Br's, Marius On Apr 14, 2:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote: Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with all the dependency management by yourself :( Can you specify what do you expected from maven? what were the problems encountered? On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX -- João Miguel Pereira, PMPhttp://jpereira.euhttp:// www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com (351) 96 275 68 58 -- Viktor Klang Senior Systems Analyst --~--~-~--~~~---~--~~ 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?
Thanks for your comments, João. I am using Ant (or respectively the Eclipse built-in Ant-based dependency management) for my Java and Scala work. I am on Vista. Maven sputtered a number of different error messages on several trials. I don't want to learn Maven and get to the bottom of this. Busy schedules... What I am trying to do is to fit Lift into my existing dev tool stack, Eclipse, Tomcat, MySQL, and (possibly) Hibernate. Cheers, CNX On Apr 14, 6:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote: Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. --~--~-~--~~~---~--~~ 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?
Didn't Eric make some ant scripts ages ago... I certainly remember someone making them prior to this discussion. Tim On 14/04/2009 12:38, marius d. marius.dan...@gmail.com wrote: Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient projects like the results produced by Lift's archetypes? ... so that people can just download that project zip file with the ant build in it and then start building the app on top of that? ... would that work ? Br's, Marius On Apr 14, 2:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote: Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with all the dependency management by yourself :( Can you specify what do you expected from maven? what were the problems encountered? On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX -- João Miguel Pereira, PMPhttp://jpereira.euhttp://www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com (351) 96 275 68 58 --~--~-~--~~~---~--~~ 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: In-built services documentation.
The wiki should be online today or tomorrow at the latest. We had a nasty DoS attack on our machine and we're working to restore services but we're also being a lot more careful about security this time and that means manually rebuilding the services rather than copying the old files. On Mon, Apr 13, 2009 at 5:27 PM, jc jorge.couc...@gmail.com wrote: Hi All! As I'm exploring this new (for me) web framework, I have the followings questions: a) Whick kind of in-built services the framework brings? As an example: has it permissions management (no user login, but permissions over objects, as for example the items of a to-do list, where each item is an object and it has permissions associated to the users) and a way to traverse a permission hierarchy in an efficient manner? b) Where can I find information about the framework (the wiki appears to be broken)? Thanks a lot for your help. Regards Jorge -- 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: Eclipse tooling for Lift?
On Tue, Apr 14, 2009 at 4:46 AM, Miles Sabin mi...@milessabin.com wrote: I'm about to start putting together a Lift-based website for my Scala consulting business, and it struck me that it might be helpful if there were support for Lift applications, either as part of the main Scala IDE or as an extension. Would there be any interest? That'd be totally awesome! What would people like to see? Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://twitter.com/milessabin -- 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] Eclipse tooling for Lift?
I'm about to start putting together a Lift-based website for my Scala consulting business, and it struck me that it might be helpful if there were support for Lift applications, either as part of the main Scala IDE or as an extension. Would there be any interest? What would people like to see? Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://twitter.com/milessabin --~--~-~--~~~---~--~~ 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?
expected output. I don't want to bother with Maven at this time. Can You'll have a better experience if you take the time to learn how maven works. On Apr 14, 7:11 am, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX --~--~-~--~~~---~--~~ 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 plugins/extensibility?
Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. --~--~-~--~~~---~--~~ 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 plugins/extensibility?
Lift doesn't have a formal plugin definition because none is necessary. In order to add modules to your application, you specify the modules in your Maven pom file (the only XML you'll have to touch to use Lift.) This makes sure that the module is available to your app. Next, you'll put one or two lines of configuration into the Boot.scala file to let Lift know that your module is available. This typically takes the form of intercepting URLs or registering pages in the SiteMap. What kind of plugins are you looking for in Lift? On Tue, Apr 14, 2009 at 5:44 AM, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. -- 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 plugins/extensibility?
i was just evaluating lift in general in the extensibility area. lets say for example u wanted to drop in openid authentication or something. i guess most of this is more around scala traits etc, rather than lift. what about something like dropping in a pluggable CMS. in rails for example there's comatose, and a newer one called browsercms. i know that i danjo its been architected in such a way as to allow u to build up an app from smaller app's etc. On Apr 14, 2:21 pm, Timothy Perrett timo...@getintheloop.eu wrote: You can just write normal JAR's and add them as dependencies. Everything about Lift is extensible :-) What specifically do you want from a plugin? Cheers, Tim On 14/04/2009 13:44, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. --~--~-~--~~~---~--~~ 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: Automatically change Language (Locale)
Thank you, it's working. Another (newbie) question: How do I submit the form automatically when the user change the value in select? I have: lift:LanguageUtils.changeLanguage form=post My Language is: languageSelecction:language/ languageSelecction:changeLanguage/ /lift:LanguageUtils.changeLanguage Snippet: def changeLanguage(xhtml: Group): NodeSeq = bind(languageSelecction, xhtml, language - locale.getDisplayLanguage(locale), changeLanguage - SHtml.select(AvailableLanguages.languages.toList.sort(_.getDisplayName _.getDisplayName). map(lo = (lo.toString, lo.getDisplayName)), customDefinedLocale.is.map(_.toString), v = setLocale(v)) % (onchange - Alert(test))) } Now it's showing an alert box. What it's the best aproach to automatically submit the form when value in select is changed? thank you On Mon, Apr 13, 2009 at 10:28 PM, Timothy Perrett timo...@getintheloop.eu wrote: FYI - if you want an example, check this out: http://github.com/dpp/liftweb/blob/29f44b91e28eaceaa784322eaad8f2bb909fa9aa/ sites/JPADemo/JPADemo-web/src/main/scala/bootstrap/liftweb/Boot.scala#L67 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 plugins/extensibility?
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps etc On Apr 14, 2:21 pm, Timothy Perrett timo...@getintheloop.eu wrote: You can just write normal JAR's and add them as dependencies. Everything about Lift is extensible :-) What specifically do you want from a plugin? Cheers, Tim On 14/04/2009 13:44, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. --~--~-~--~~~---~--~~ 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 plugins/extensibility?
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. On Apr 14, 2:21 pm, Timothy Perrett timo...@getintheloop.eu wrote: You can just write normal JAR's and add them as dependencies. Everything about Lift is extensible :-) What specifically do you want from a plugin? Cheers, Tim On 14/04/2009 13:44, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. --~--~-~--~~~---~--~~ 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 plugins/extensibility?
i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. On Apr 14, 2:21 pm, Timothy Perrett timo...@getintheloop.eu wrote: You can just write normal JAR's and add them as dependencies. Everything about Lift is extensible :-) What specifically do you want from a plugin? Cheers, Tim On 14/04/2009 13:44, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 plugins/extensibility?
i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. --~--~-~--~~~---~--~~ 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: JPA Run Modes
I'm not sure if you could use different xml files based on the file name because that's part of the standard, but you could probably use different ones based on the persistence unit name defined within the xml file. I think that you could have a persistence.xml file in your src/test/resources/META-INF directory with a persistence name called foo-test, where foo is your production persistence unit name. Then where you define the ScalaJPA lookup you could use the run mode to determine which unit name to look up, or if you're just using straight test cases you just statically use the test persistence unit. That's actually what I do for most of my tests. Derek On Mon, Apr 13, 2009 at 5:18 PM, Bryan germ...@gmail.com wrote: Is it possible to use mvn -Drun.mode with JPA in lift? For example, mvn -Drun.mode=production would use persistence-prod.xml. This will allow me to keep my test data separate from my development data. Thanks, Bryan --~--~-~--~~~---~--~~ 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!
Hmmm. I wonder if the following would work: Model.createQuery[Author](from Author a where a.id = :id).setParameter(id, id).findOne If that works it would be more efficient since you would be doing the filter on id in the query instead of after pulling the whole table :) Derek On Tue, Apr 14, 2009 at 12:16 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Mon, Apr 13, 2009 at 6:08 AM, Derek Chen-Becker dchenbec...@gmail.com wrote: Cool, so the ScalaJPA stuff works fine under GAE? I have some problems. For example, in some cases, ScalaEtityManager#find could not find the object. I mean that it could not find an object, Model.find[Author](classOf[Author], id) , but I got it by the following, Mode.createNamedQuery[Author](findAllAuthors).getResultList().filter(_.getId == id)(0) I, however, have guessed that problem has not come from ScalaJPA. It may be from DataNucleus or its driver for GEA's datastore. I have encountered several weired behaviors in using that datastore. 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: lift plugins/extensibility?
sorry guys. i didnt realise it was moderated (doh!!). it's been almost 5 years since i did any java at all but i know how JAR's work and i've looked into maven. i think i'll probably just go and create a sample app fully, i was going to create a personal task manager website in lift so perhaps that will be a good start. Btw, is there a good CMS module??? On Apr 14, 3:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: Mick, The list is moderated - please be patient for your messages to come through rather than repeat posting :-) Using your openID example - we already have modules for that which work out of the box! So you can just drop that in by adding a maven dependency and hooking up in Lifts boot process. In the same way we have modules for AMQP, PayPal etc etc etc. Anything we don't have, you can write with little problem provided you know enough about lift. I have modules that hook lift into our internal enterprise systems via dispatching (LiftRules.DispatchPF etc) - you could build anything you wanted really and just distribute that as a pluggable JAR. If you familiar with gems, its kind of like that, but it works properly ;-) Are you familiar with maven? Cheers, Tim On 14/04/2009 15:02, Mick Delaney mickdela...@gmail.com wrote: i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. --~--~-~--~~~---~--~~ 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 plugins/extensibility?
Btw, is there a good CMS module??? Not currently. I would *love* to rewrite Wordpress+WordpressMU +Buddypress. I have been talking about it for more than a year though. :( On Apr 14, 11:23 am, Mick Delaney mickdela...@gmail.com wrote: sorry guys. i didnt realise it was moderated (doh!!). it's been almost 5 years since i did any java at all but i know how JAR's work and i've looked into maven. i think i'll probably just go and create a sample app fully, i was going to create a personal task manager website in lift so perhaps that will be a good start. Btw, is there a good CMS module??? On Apr 14, 3:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: Mick, The list is moderated - please be patient for your messages to come through rather than repeat posting :-) Using your openID example - we already have modules for that which work out of the box! So you can just drop that in by adding a maven dependency and hooking up in Lifts boot process. In the same way we have modules for AMQP, PayPal etc etc etc. Anything we don't have, you can write with little problem provided you know enough about lift. I have modules that hook lift into our internal enterprise systems via dispatching (LiftRules.DispatchPF etc) - you could build anything you wanted really and just distribute that as a pluggable JAR. If you familiar with gems, its kind of like that, but it works properly ;-) Are you familiar with maven? Cheers, Tim On 14/04/2009 15:02, Mick Delaney mickdela...@gmail.com wrote: i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. --~--~-~--~~~---~--~~ 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 plugins/extensibility?
On Tue, Apr 14, 2009 at 8:23 AM, Mick Delaney mickdela...@gmail.com wrote: sorry guys. i didnt realise it was moderated (doh!!). Yeah... we are now getting about 10 spam messages a day, so new members are moderated. it's been almost 5 years since i did any java at all but i know how JAR's work and i've looked into maven. i think i'll probably just go and create a sample app fully, i was going to create a personal task manager website in lift so perhaps that will be a good start. Perhaps you can take the ToDo app in the getting started document, enhance it and publish the source. :-) Btw, is there a good CMS module??? Charles Munat is the expert in this area. On Apr 14, 3:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: Mick, The list is moderated - please be patient for your messages to come through rather than repeat posting :-) Using your openID example - we already have modules for that which work out of the box! So you can just drop that in by adding a maven dependency and hooking up in Lifts boot process. In the same way we have modules for AMQP, PayPal etc etc etc. Anything we don't have, you can write with little problem provided you know enough about lift. I have modules that hook lift into our internal enterprise systems via dispatching (LiftRules.DispatchPF etc) - you could build anything you wanted really and just distribute that as a pluggable JAR. If you familiar with gems, its kind of like that, but it works properly ;-) Are you familiar with maven? Cheers, Tim On 14/04/2009 15:02, Mick Delaney mickdela...@gmail.com wrote: i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. -- 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] The Lift Wiki is back online
Folks, http://wiki.liftweb.net is back online. 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 --~--~-~--~~~---~--~~ 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: JPA: putting persistence Id into trait
There is existing code that defines user types in the JPA demo site (under sites in GitHub), so feel free to copy it. I'm going to be very busy until the end of the month, but I can look at including the enum type in Scala JPA. As for JodaTime and HibernateSpatial, perhaps I could add new modules to ScalaJPA just for those so that people could easily add support as a dependency. Derek On Tue, Apr 14, 2009 at 10:51 AM, Tim P tim.pig...@optrak.co.uk wrote: If I start working with scala jpa (decision still to be made) I'm likely to need to use quite a lot of UserTypes - for example jodatime and geometry/spatial (Hibernate usertypes for these already exist). If these can benefit from scala wrappers/traits I'm happy to contribute. 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: [scala] Google App Engine for Scala!
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 On Tue, Apr 14, 2009 at 10:14 AM, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com wrote: Hi, On Tue, Apr 14, 2009 at 11:35 PM, Derek Chen-Becker dchenbec...@gmail.com wrote: Hmmm. I wonder if the following would work: Model.createQuery[Author](from Author a where a.id = :id).setParameter(id, id).findOne If that works it would be more efficient since you would be doing the filter on id in the query instead of after pulling the whole table :) Yes, select from net.liftweb.example.model.Authora where a.id = :id works well; I mean that, without select, java.lang.IllegalArgumentException: JPQL Query should always start with SELECT/UPDATE/DELETE will be thrown, and in current GAE/J system the class name must be fully qualified. And also, I don't know the reason, but Model.find works fine now ;-( 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: Proposed URL Shortening widget
Hey Jorge, I reflected on the uses of this - your actually right, this would be super useful. I know your into your math algorithms and stuff... any thoughts on a system to keep URL's short? Cheers, Tim On Apr 2, 8:48 pm, Jorge Ortiz jorge.or...@gmail.com wrote: What about easily turning any lift app into a url shortener service? Wouldn't be too hard... Granted, some services (bit.ly) add statistics, visualization, conversation tracking, etc. which aren't just url shortening. --j --~--~-~--~~~---~--~~ 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?
On Apr 14, 2:40 pm, Viktor Klang viktor.kl...@gmail.com wrote: On Tue, Apr 14, 2009 at 1:38 PM, marius d. marius.dan...@gmail.com wrote: Even if I find maven quite helpful for Lift there are people that just want to stay away from maven. I can understand that. Perhaps it would be helpful to also have some ant script to build a lift project? ... or perhaps have a downloadable zip archive from lift's site that contains incipient projects like the results produced by Lift's archetypes? ... so that people can just download that project zip file with the ant build in it and then start building the app on top of that? ... would that work ? Nice angle! Or perhaps have an online service where you can specify the archetype details and have a compressed payload downloaded? Yup crossed my mind ... and I love it. Basically run the archetype on demand and serve back the zip content. Br's, Marius On Apr 14, 2:23 pm, João Pereira joaomiguel.pere...@gmail.com wrote: Hello, I find that maven will ease your work a lot. Usually it take only one step to get a lift app running. mvn jetty:run if you want to create an eclipse project for the downloaded app, you just do mvn eclipse:eclipse and then import it to eclipse. Not using maven you'll have to deal with all the dependency management by yourself :( Can you specify what do you expected from maven? what were the problems encountered? On Tue, Apr 14, 2009 at 12:11 PM, tk050305cnx tk050305...@gmail.com wrote: I am new to Liftweb. Unfortunately, the example app in the getting started doc did not work. That is... Maven did not produce the expected output. I don't want to bother with Maven at this time. Can you point me to a source that describes how to set up a helloworld type of application manually and deploy it on Tomcat? Is there any Eclipse automation for that? Cheers, CNX -- João Miguel Pereira, PMPhttp://jpereira.euhttp:// www.linkedin.com/in/joaomiguelpereira joaomiguel.pere...@gmail.com (351) 96 275 68 58 -- Viktor Klang Senior Systems Analyst --~--~-~--~~~---~--~~ 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 plugins/extensibility?
Perhaps lift-widgets project will shed some light for you. Widgets are in many respects self contained in terms of dependencies and you just use the exposed functions in your snippets. Br's, Marius On Apr 14, 3:44 pm, Mick Delaney mickdela...@gmail.com wrote: Hi, i'm currently having a look at lift. i've looked through the getting started book. i'm currently developing in asp.net rails, and one thing that i find really powerful in rails over asp is plugins. is there an equivalent plugin style api in lift? or is there some other way to achieve the same result. Regards. --~--~-~--~~~---~--~~ 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: JPA: putting persistence Id into trait
Tim, Where does one find these UserTypes? I'm really interested in switching to JodaTime. Chas. Tim P wrote: If I start working with scala jpa (decision still to be made) I'm likely to need to use quite a lot of UserTypes - for example jodatime and geometry/spatial (Hibernate usertypes for these already exist). If these can benefit from scala wrappers/traits I'm happy to contribute. 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: Liftweb without Maven?
Perhaps we could couple this with Hudson? Hudson has an API (see here: http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API ) so perhaps we could serve stuff up on the fly through that? Just spitballing here Cheers, Tim On Apr 14, 8:46 pm, João Pereira joaomiguel.pere...@gmail.com wrote: yeah. nice service. maybe built with lift? --~--~-~--~~~---~--~~ 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 plugins/extensibility?
On Tue, Apr 14, 2009 at 5:53 PM, TylerWeir tyler.w...@gmail.com wrote: Btw, is there a good CMS module??? Not currently. I would *love* to rewrite Wordpress+WordpressMU +Buddypress. I have been talking about it for more than a year though. :( I've been gnawing on this idea for a while aswell, until I actually have some spare time, I've only managed to create a working-name: facelift On Apr 14, 11:23 am, Mick Delaney mickdela...@gmail.com wrote: sorry guys. i didnt realise it was moderated (doh!!). it's been almost 5 years since i did any java at all but i know how JAR's work and i've looked into maven. i think i'll probably just go and create a sample app fully, i was going to create a personal task manager website in lift so perhaps that will be a good start. Btw, is there a good CMS module??? On Apr 14, 3:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: Mick, The list is moderated - please be patient for your messages to come through rather than repeat posting :-) Using your openID example - we already have modules for that which work out of the box! So you can just drop that in by adding a maven dependency and hooking up in Lifts boot process. In the same way we have modules for AMQP, PayPal etc etc etc. Anything we don't have, you can write with little problem provided you know enough about lift. I have modules that hook lift into our internal enterprise systems via dispatching (LiftRules.DispatchPF etc) - you could build anything you wanted really and just distribute that as a pluggable JAR. If you familiar with gems, its kind of like that, but it works properly ;-) Are you familiar with maven? Cheers, Tim On 14/04/2009 15:02, Mick Delaney mickdela...@gmail.com wrote: i cant seem to reply to my previous post for some reason :-( so i'll reply here: i was evaluating lift versus rails plugins/gems mainly. for example, lets say i want to drop in openid authentication or something. or if i wanted to make a class versionable (although that's scala really not lift). what about a pluggable CMS, e.g. comatose or browsercms in rails, in djanjo for example its architected in such a way that allows u to compose an app from smaller apps. -- Viktor Klang Senior Systems Analyst --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---