[Lift] TextileParser
I am trying to use TextileParser and so I am importing it but I'm getting the error. value textile is not a member of package net.liftweb What am I missing? Jack --~--~-~--~~~---~--~~ 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: About the localization with lift:loc !
if i use this code and it works correctly ! Code: ### login = \u52a8\u4f5c ### But it's so difficult to write code ! I don't know what happens with it . Cheers, Neil On Oct 25, 7:19 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please make sure your lift-core_zh_CN.properties was saved as UTF-8 On Sat, Oct 24, 2009 at 11:31 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I create a props file in the resources folder /src/main/resources/ i18n/lift-core_zh_CN.properties And i changed the log.in text value. Now i use this code in my index.html page, and it doesn't corretly. (garbled) ### it doesn't work lift:loc locid=log.inLog in/lift:loc ### This information from: http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-w... Cheers, Neil -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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: About the localization with lift:loc !
Yeah, it's saved as U8-UNIX encoding by the Ultraedit. My IE's default language is zh_CN, but i get the same garbled in the browser. Like this in the browser. ### 555å Ž ### Cheers, Neil On Oct 25, 7:19 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please make sure your lift-core_zh_CN.properties was saved as UTF-8 On Sat, Oct 24, 2009 at 11:31 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I create a props file in the resources folder /src/main/resources/ i18n/lift-core_zh_CN.properties And i changed the log.in text value. Now i use this code in my index.html page, and it doesn't corretly. (garbled) ### it doesn't work lift:loc locid=log.inLog in/lift:loc ### This information from: http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-w... Cheers, Neil -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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: TextileParser
Hi Jack, Add following code to pom.xml. dependency groupIdnet.liftweb/groupId artifactIdlift-textile/artifactId version1.1-SNAPSHOT/version /dependency On Oct 25, 3:23 pm, jack jack.wid...@gmail.com wrote: I am trying to use TextileParser and so I am importing it but I'm getting the error. value textile is not a member of package net.liftweb What am I missing? Jack --~--~-~--~~~---~--~~ 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: Is there a built-with-lift list?
David Pollak feeder.of.the.be...@gmail.com writes: A quick list of public sites (there are a fair number behind the firewall at places like SAP and Seimens): - http://foursquare.com - http://nofouls.com/ - http://innovationgames.ocm - http://udorse.com/ I can add http://fleetdna.com :-) Not that interesting atm, since it's currently for paying (enterprise) customers onlythere may be some free offerings at some point /Jeppe --~--~-~--~~~---~--~~ 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: About the localization with lift:loc !
David Pollak feeder.of.the.be...@gmail.com writes: Please make sure your lift-core_zh_CN.properties was saved as UTF-8 Unless, lift does it's own property loading, property files need to be in ISO-8859: When saving properties to a stream or loading them from a stream, the ISO 8859-1 character encoding is used. For characters that cannot be directly represented in this encoding, Unicode escapes are used; however, only a single 'u' character is allowed in an escape sequence. The native2ascii tool can be used to convert property files to and from other character encodings. http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html /Jeppe --~--~-~--~~~---~--~~ 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: Is there a built-with-lift list?
My latest lift app: http://mediapro09.xmpie.com A technical breakdown can be found on my blog :-) Cheers, Tim Sent from my iPhone On 25 Oct 2009, at 09:57, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: David Pollak feeder.of.the.be...@gmail.com writes: A quick list of public sites (there are a fair number behind the firewall at places like SAP and Seimens): - http://foursquare.com - http://nofouls.com/ - http://innovationgames.ocm - http://udorse.com/ I can add http://fleetdna.com :-) Not that interesting atm, since it's currently for paying (enterprise) customers onlythere may be some free offerings at some point /Jeppe --~--~-~--~~~---~--~~ 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: About the localization with lift:loc !
Neil, This is normal practice with java localisation - the best thing is do write all your strings then use native2ascii or similar tooling to convert it into the unicode representation. Glad you found my article helpful. Cheers, Tim On Oct 25, 5:02 am, Neil.Lv anim...@gmail.com wrote: if i use this code and it works correctly ! Code: ### login = \u52a8\u4f5c ### But it's so difficult to write code ! I don't know what happens with it . Cheers, Neil On Oct 25, 7:19 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please make sure your lift-core_zh_CN.properties was saved as UTF-8 On Sat, Oct 24, 2009 at 11:31 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I create a props file in the resources folder /src/main/resources/ i18n/lift-core_zh_CN.properties And i changed the log.in text value. Now i use this code in my index.html page, and it doesn't corretly. (garbled) ### it doesn't work lift:loc locid=log.inLog in/lift:loc ### This information from: http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-w... Cheers, Neil -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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: Proposal : Lift ticketing system
+1, good pr Proposal. On 10月25日, 上午11时17分, Naftoli Gugenheim naftoli...@gmail.com wrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community project, with lots of feedback to Lift. - jlist9jli...@gmail.com wrote: CMS, wiki, blog, forum also sound more interesting than bug tracking system to me :-) On Sat, Oct 24, 2009 at 11:13 AM, aw anth...@whitford.com wrote: I don't mean to be negative, but are other options being considered besides a ticketing system? I kind of wonder if the effort is worth it when excellent alternatives exist (like JIRA -- their Git integration may interest you: https://plugins.atlassian.com/plugin/details/4984 -- I have used their Subversion integration and was very pleased). I would be far more interested in seeing something done for the benefit of the Lift Web Site. (Is it written with Lift?) I don't see a Lift CMS -- and that is something that could evolve well over time. I think it is important for a web framework to use their own stuff, and it should be indicative of the cool things that it can do, stability, scale, and performance... (I am amazed that I have seen rather poor demonstrations of this, specifically by Adobe and JBoss -- but again, I'm not trying to be negative...) I see the Lift site integrating Google Analytics... Is that something that could be out of the box with Lift? That could be a selling point to people making external web sites. Another area that would be neat to develop is instrumentation. Sort of the JMX-Console equivalent for Lift. For scalability and sizing analysis, this would be really useful. Having said that, one major feature that I feel is missing from github is the lack of attachments for an issue. How do you attach test cases or patches for an issue? --~--~-~--~~~---~--~~ 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] About the ajaxButton's confirm ?
Hi all, I use the ajaxButton to delete the record from the database, and How can the ajaxButton surpport the confirm dialog when clicking the delete button(ajaxButton) ? 1:) I use this method that it will be show the confirm dialog when clicking the delete button, but it never call the deleteItemFromDb() method. ### ajaxButton(S.?(delete), Call(confirm, Str(are you sure?)), () = {deleteItemFromDb(); reDraw()}) ### 2:) When clicking the delete button, the record will be deleted from the db, but it doesn't show the confrim dialog (the js confirm dialog) . ### ajaxButton(S.?(delete), () = {deleteItemFromDb(); reDraw();}) Thanks for any suggestion ! Cheers, Neil ### --~--~-~--~~~---~--~~ 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: Proposal : Lift ticketing system
Should this topic be correlated with Derek's http://groups.google.com/group/liftweb/browse_thread/thread/a3d046c7159a4f39?hl=en ? On Oct 25, 5:17 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community project, with lots of feedback to Lift. - jlist9jli...@gmail.com wrote: CMS, wiki, blog, forum also sound more interesting than bug tracking system to me :-) On Sat, Oct 24, 2009 at 11:13 AM, aw anth...@whitford.com wrote: I don't mean to be negative, but are other options being considered besides a ticketing system? I kind of wonder if the effort is worth it when excellent alternatives exist (like JIRA -- their Git integration may interest you: https://plugins.atlassian.com/plugin/details/4984 -- I have used their Subversion integration and was very pleased). I would be far more interested in seeing something done for the benefit of the Lift Web Site. (Is it written with Lift?) I don't see a Lift CMS -- and that is something that could evolve well over time. I think it is important for a web framework to use their own stuff, and it should be indicative of the cool things that it can do, stability, scale, and performance... (I am amazed that I have seen rather poor demonstrations of this, specifically by Adobe and JBoss -- but again, I'm not trying to be negative...) I see the Lift site integrating Google Analytics... Is that something that could be out of the box with Lift? That could be a selling point to people making external web sites. Another area that would be neat to develop is instrumentation. Sort of the JMX-Console equivalent for Lift. For scalability and sizing analysis, this would be really useful. Having said that, one major feature that I feel is missing from github is the lack of attachments for an issue. How do you attach test cases or patches for an issue? --~--~-~--~~~---~--~~ 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-json serialization primitive types
Hi, Is there a way to configure lift-json's case class serialization so that it uses Joda DateTimes instead of java.util.Date ? I'd like to known how to make the simple following code work as expected: import net.liftweb.json._ import org.joda.time._ case class MyCaseClass(dt: DateTime) object TestMain { def main(args: Array[String]) { implicit val formats = DefaultFormats println(Serialization.read[MyCaseClass]({ dt : 2009-10-25T12:50:37.560+01:00 })) println(Serialization.write(MyCaseClass(new DateTime))) } } (running this code yields: MyCaseClass(2009-10-25T12:57:03.366+01:00) -- current date when the program was run, not the date in the code {} ) More generally, is there a way to customize lift-json's serialization mappings, in particular the types lift-json sees as primitive ? The class I'm actually interested in serializing has many fields whose type is a non-case class MyRichFloat with a single Float field. It would be really nice if I could (de)serialize these into JSON floats. --~--~-~--~~~---~--~~ 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: Are we willing to make a breaking change for Joda Time?
I made my decision. It's not open for any more debate (that's what happens when there's a BDFL around... he can make a final decision). I listened to your position as you have articulated it in this thread. I seriously and deeply considered your position and those of others. But I made a decision and the discussion is over. On Sat, Oct 24, 2009 at 8:29 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Well if users would, for at least one release, explicitly say which time library they want to use, this kind of bug would not occur. It's not 'jt' per se; rather, as Derek said, it's having names that indicate the implementation detail rather than simply what it does. It makes code less readable. We required everyone to update their imports for Box and actors. I think your argument is that requiring such changes should only be done when there is a big enough gain. So the disagreement seems to be whether allowing people to use JodaTime code that's as readable as java.util time is important enough. Or whether names like 'jtNow' are less readable. Another point. If JDK 7 time is not 100% compatible with JodaTime, if we take TimeHelpers out of Helpers, having all 3 play together nicely is straightforward. On the other hand, if we try to squeeze in new names, we will have to add even more of them. And say some company wants to add their own time API. - David Pollakfeeder.of.the.be...@gmail.com wrote: On Sat, Oct 24, 2009 at 3:05 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Derek Chen-Becker dchenbec...@gmail.com writes: [...] It's entirely subjective, but I just strongly dislike the idea of using method names like jtNow, etc. I couldn't agree morecode just doesn't read nice anymore. I'm cool with other names, but, and this is a huge *BUT*... having two methods that have different return signatures is a huge source of bugs. We saw this when we changed some of the S methods to return Box[String] rather than String. There were hundreds of subtle errors. I'm happy to deprecate now and have goodNow (returns JodaTime) and evilNow (returns java.util.Date), but I am 100% against changing a return signature. I am sorry that my position is making folks unhappy, especially Derek who works hard and does a great job. Thanks, David /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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: Proposal: Lift-unstable branch (was Are we willing to make a breaking change for Joda Time?)
Kris, I'm all for an unstable branch. I like exploration. I doubt I can spend a lot of time contributing to the branch, but using the powers of Maven and Git, I think it would be pretty easy to have such a branch. The breaking change issue was a small part of why I rejected Derek's proposal. I'm not going to rehash my reasoning... it's on the prior thread and if you need clarification, please contact me privately. *In terms of calcification, I disagree with your suggestion that Lift is calcifying. One always has to make a trade-off between the cost of changes and the value of the change. We broke the APIs massively to move Box to lift-common and change over from Scala Actors to Lift Actors. In this case, the break was obvious and the upside was very high.* * * *But, yes, I'm totally in favor of an unstable branch.* * * *Thanks,* * * *David* * * On Sat, Oct 24, 2009 at 12:36 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: This brings to mind something I've been thinking about for a while - what would folks think about the possibility of creating a lift-unstable branch? Lift is only a couple of years old, and it seems to me like it would be unfortunate to start stagnating development due to concerns about backwards compatibility. So, my proposal is this: that we create a branch of Lift that makes no guarantees about source compatibility from release to release or indeed day-to-day. This could be a proving ground for new ideas that could then either be migrated into the main trunk with changes for backwards compatibility, or could be source of new major version releases. If we don't have the freedom to make breaking changes at even such a small level as Derek proposed with the Joda-Time situation, I think it's a problem. Lift is too young to calcify just yet. Kris On Sat, Oct 24, 2009 at 12:03 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Oct 24, 2009 at 3:05 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Derek Chen-Becker dchenbec...@gmail.com writes: [...] It's entirely subjective, but I just strongly dislike the idea of using method names like jtNow, etc. I couldn't agree morecode just doesn't read nice anymore. I'm cool with other names, but, and this is a huge *BUT*... having two methods that have different return signatures is a huge source of bugs. We saw this when we changed some of the S methods to return Box[String] rather than String. There were hundreds of subtle errors. I'm happy to deprecate now and have goodNow (returns JodaTime) and evilNow (returns java.util.Date), but I am 100% against changing a return signature. I am sorry that my position is making folks unhappy, especially Derek who works hard and does a great job. Thanks, David /Jeppe -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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: confusing error on missing bind
indeed, you are correct. i thought the message was coming from Lift! On Oct 24, 8:11 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: You'll notice if you look at the page source that the error you saw is actually generously provided by Firefox, not by Lift. There is an overload of bind that you could use that allow you to provide a default for any unbound value, although of course this can obscure errors. For a while there was also some code that gave more informative error messages if you were running the app in development mode, but for some reason I don't think I've seen those recently. Hmm. Perhaps I need to make sure I'm not doing development in production mode myself. :) Kris On Sat, Oct 24, 2009 at 5:39 PM, bob rbpas...@gmail.com wrote: the following error was the result of a bug in my app: i had an element (queries:service/) in the template which I had forgotten to bind in the snippet This page contains the following errors: error on line 18 at column 48: Namespace prefix queries on service is not defined in a big red box first, there is no line 18 in the template, and line 18 in my source code is a blank line, so I couldn't tell which line (let alone which column column) it was referring to. and since the error appeared in the webpage (rather than, say Console), i expected it referred to line 18 in the template, but in fact my error was in the code. second, the error would be more informative if it said something along the lines of: . : Namespace prefix 'queries' on 'service' in template index.html was not bound or even . : queries:service in template index.html' was not bound thanks, bob --~--~-~--~~~---~--~~ 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: About the ajaxButton's confirm ?
Please use this definition of the ajax button: def ajaxButton(text: NodeSeq, jsFunc: Call, func: () = JsCmd, attrs: (String, String)*): Elem I described the functionality here: http://groups.google.com/group/liftweb/browse_thread/thread/ec573c0e3052a862/038920885900c7d6?lnk=gstq=ajaxButton#038920885900c7d6 .. see the last post. Let me know if you have further questions. Br's, Marius On Oct 25, 1:24 pm, Neil.Lv anim...@gmail.com wrote: Hi all, I use the ajaxButton to delete the record from the database, and How can the ajaxButton surpport the confirm dialog when clicking the delete button(ajaxButton) ? 1:) I use this method that it will be show the confirm dialog when clicking the delete button, but it never call the deleteItemFromDb() method. ### ajaxButton(S.?(delete), Call(confirm, Str(are you sure?)), () = {deleteItemFromDb(); reDraw()}) ### 2:) When clicking the delete button, the record will be deleted from the db, but it doesn't show the confrim dialog (the js confirm dialog) . ### ajaxButton(S.?(delete), () = {deleteItemFromDb(); reDraw();}) Thanks for any suggestion ! Cheers, Neil ### --~--~-~--~~~---~--~~ 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: YUI Compressor Fatal Error
FYI: I released a new version of yuicompressor-maven-plugin (same code but use yuicompressor-2.4.2) Note that the groupId was changed, and that the plugin is not yet available on central repo : repository nameoss.sonatype.org - github-releases/name idoss.sonatype.org-releases/id urlhttp://oss.sonatype.org/content/repositories/github-releases/url /repository ... dependency groupIdnet.alchim31.maven/groupId artifactIdyuicompressor-maven-plugin/artifactId version0.9/version /dependency If you have some trouble, issue, use the githug issue tracker : http://github.com/davidB/yuicompressor-maven-plugin/issues /davidB On Thu, Oct 8, 2009 at 13:46, Dirk Louwers dirk.louw...@stormlantern.nl wrote: Hi, I am running 9.04 and have used a workaround to fix the YUI compressor issue. See: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149 If I remember correctly I romoved a symlink to the rhino jar from /usr/ lib/jvm/java-6-openjdk/jre/lib and that fixed it (without any noticable side-effects so far). Best, Dirk On Oct 8, 2:23 pm, Peter Robinett pe...@bubblefoundry.com wrote: Hi all, I just switched to the Sun JVM and everything works now, so it definitely was OpenJDK. Oh well. Peter On Oct 6, 7:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Tue, Oct 6, 2009 at 1:39 AM, Peter Robinett pe...@bubblefoundry.comwrote: Thanks, all. While David Bernard's plan to update the maven plugin is very welcome, the fact that Scala Actors don't work for Comet actors suggests that I should switch to the Sun JVM. Keep in mind I was on Ubuntu 8.04 (granted this is the LTS version). I'll try on 9.04 today. Peter On Oct 6, 8:50 am, David Bernard david.bernard...@gmail.com wrote: yuicompressor 2.3.x doesn't work with openjdk (https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/287035) But it seems that yuicompressor 2.4.2 works (http://www.electrictoolbox.com/minify-javascript-css-yui-compressor/) It's a long time I didn't update yuicompressor-maven-plugin. I'll deploy a new version latter this week. /davidB On Tue, Oct 6, 2009 at 02:19, Ross Mellgren dri...@gmail.com wrote: According to his version number he's running ubuntu and that particular version corresponds to jaunty jackalope (9.04) Unless he spliced that package into debian or something else. -Ross On Oct 5, 2009, at 8:06 PM, David Pollak wrote: d...@david-desktop:~/Desktop/liftweb/examples/example$ java -version Picked up JAVA_TOOL_OPTIONS: -Xmx1024M java version 1.6.0_0 OpenJDK Runtime Environment (build 1.6.0_0-b11) OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing) d...@david-desktop:~/Desktop/liftweb/examples/example$ I'm running on Ubuntu 8.04 with the OpenJDK installation. I get compilation failures on about half the runs. They appear to be random. Scala Actors do not work (I'm not trying to throw gasoline on any fires, just reporting what I'm seeing) when powering Lift's comet stuff. However, Lift Actors do work. I'm not seeing any explicit issues with other libraries. What OS are you running under your OpenJDK installation? On Mon, Oct 5, 2009 at 1:10 PM, Peter Robinett pe...@bubblefoundry.com wrote: Ross, I am using OpenJDK: $ java -version java version 1.6.0_0 OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11) OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode) Is it possible to use YUI Compressor at all with OpenJDK? Peter On Oct 5, 7:32 pm, Ross Mellgren dri...@gmail.com wrote: I thought someone mentioned this a little while ago and it was due to OpenJDK (and only related to the YUI compressor)? -Ross On Oct 5, 2009, at 1:25 PM, jon wrote: Is there a syntax problem in one of your javascript files? On Oct 5, 1:23 pm, Peter Robinett pe...@bubblefoundry.com wrote: Hi all, I've been compiling and running my Lift app on my personal machine without any problems but when I try to run it on another machine (where it had previously worked), I am getting fatal YUI Compressor errors. Not knowing YUI Compressor or how Lift and Maven use it (but willing to learn!), I'd appreciate any tips on how to get it to work again. Thanks in advance, Peter Robinett PS I thought I already posted a version of this message but I don't see it on the Groups site. My apologies if this message is a duplicate. $ mvn jetty:run [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] [INFO] Building server [INFO] task-segment:
[Lift] 1.1
I have been using lift 1.0. What is the best way to upgrade to 1.1? --~--~-~--~~~---~--~~ 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: 1.1
Jack, This question has been asked quite a number of times recently on list. Change: version1.0/version on the liftweb dependencies in your pom.xml to be: version1.1-SNAPSHOT/version That will give you the latest HEAD build. If you want a known point in time, use M6: version1.1-M6/version Cheers, Tim On Oct 25, 6:00 pm, jack jack.wid...@gmail.com wrote: I have been using lift 1.0. What is the best way to upgrade to 1.1? --~--~-~--~~~---~--~~ 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: 1.1
Thanks Tim. And next time I will search more before asking. On Sun, Oct 25, 2009 at 2:26 PM, Timothy Perrett timo...@getintheloop.euwrote: Jack, This question has been asked quite a number of times recently on list. Change: version1.0/version on the liftweb dependencies in your pom.xml to be: version1.1-SNAPSHOT/version That will give you the latest HEAD build. If you want a known point in time, use M6: version1.1-M6/version Cheers, Tim On Oct 25, 6:00 pm, jack jack.wid...@gmail.com wrote: I have been using lift 1.0. What is the best way to upgrade to 1.1? -- Jack Widman co-founder / cto, Authoritude, Inc. 203-641-9355 --~--~-~--~~~---~--~~ 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: 1.1
Your welcome Jack. Have fun. Cheers, Tim On 25 Oct 2009, at 18:28, Jack Widman wrote: Thanks Tim. And next time I will search more before asking. --~--~-~--~~~---~--~~ 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: Submitting a form and returning results
I worked around this in the end with a stateful snippet, not sure it feels right though ! --~--~-~--~~~---~--~~ 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-json serialization primitive types
Hi, Serializing joda-time is not supported. Last week a type hint mechanism was added to support serialization of polymorphic Lists. This could be generalized a bit so that users can provide de-/ serializers for any type. This could be done for instance using a pair of partial functions. Something like: type TypeHint = String def serialize: PartialFunction[Any, JValue] def deserialize: PartialFunction[(TypeHint, JValue), Any] Then a support to serialize joda-time DateTime could be implemented as: def serialize(a: Any) = a match { case d: DateTime = JString(t, toString(d)) } def deserialize(hint: TypeHint, json: JValue) = (hint, json) match { case (DateTime, JString(t, JString(t)) = mkDateTime(t) } I'm in a middle of something else right now but will look into this next. Cheers Joni On 25 loka, 14:27, Christophe Dehlinger christophedehlin...@gmail.com wrote: Hi, Is there a way to configure lift-json's case class serialization so that it uses Joda DateTimes instead of java.util.Date ? I'd like to known how to make the simple following code work as expected: import net.liftweb.json._ import org.joda.time._ case class MyCaseClass(dt: DateTime) object TestMain { def main(args: Array[String]) { implicit val formats = DefaultFormats println(Serialization.read[MyCaseClass]({ dt : 2009-10-25T12:50:37.560+01:00 })) println(Serialization.write(MyCaseClass(new DateTime))) } } (running this code yields: MyCaseClass(2009-10-25T12:57:03.366+01:00) -- current date when the program was run, not the date in the code {} ) More generally, is there a way to customize lift-json's serialization mappings, in particular the types lift-json sees as primitive ? The class I'm actually interested in serializing has many fields whose type is a non-case class MyRichFloat with a single Float field. It would be really nice if I could (de)serialize these into JSON floats. --~--~-~--~~~---~--~~ 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 plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist
Guys, Im getting the below when building a fresh pull of lift - It doesnt even appear to be looking at scala-tools, despite it being defined. Very odd, any ideas? Cheers, Tim [INFO] Searching repository for plugin with prefix: 'scala'. [INFO] org.apache.maven.plugins: checking for updates from scala- tools.release [INFO] org.apache.maven.plugins: checking for updates from scala- tools.snapshot [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from scala- tools.release [INFO] org.codehaus.mojo: checking for updates from scala- tools.snapshot [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.release [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.snapshot [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] --~--~-~--~~~---~--~~ 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: Proposal : Lift ticketing system
Did my Peek cause it to go in a separate thread? If so, sorry! - Mariusmarius.dan...@gmail.com wrote: Should this topic be correlated with Derek's http://groups.google.com/group/liftweb/browse_thread/thread/a3d046c7159a4f39?hl=en ? On Oct 25, 5:17 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How about we integrate the wiki, blog, forum, and issue tracker into the CMS? ;) Seriously, maybe it would be a good idea to create a repo and list, and start serious discussion on all aspects of its design. Maybe it could become a big community project, with lots of feedback to Lift. - jlist9jli...@gmail.com wrote: CMS, wiki, blog, forum also sound more interesting than bug tracking system to me :-) On Sat, Oct 24, 2009 at 11:13 AM, aw anth...@whitford.com wrote: I don't mean to be negative, but are other options being considered besides a ticketing system? I kind of wonder if the effort is worth it when excellent alternatives exist (like JIRA -- their Git integration may interest you: https://plugins.atlassian.com/plugin/details/4984 -- I have used their Subversion integration and was very pleased). I would be far more interested in seeing something done for the benefit of the Lift Web Site. (Is it written with Lift?) I don't see a Lift CMS -- and that is something that could evolve well over time. I think it is important for a web framework to use their own stuff, and it should be indicative of the cool things that it can do, stability, scale, and performance... (I am amazed that I have seen rather poor demonstrations of this, specifically by Adobe and JBoss -- but again, I'm not trying to be negative...) I see the Lift site integrating Google Analytics... Is that something that could be out of the box with Lift? That could be a selling point to people making external web sites. Another area that would be neat to develop is instrumentation. Sort of the JMX-Console equivalent for Lift. For scalability and sizing analysis, this would be really useful. Having said that, one major feature that I feel is missing from github is the lack of attachments for an issue. How do you attach test cases or patches for an issue? --~--~-~--~~~---~--~~ 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] Register new StatefulSnippet
This may be more of a feature request than a question. I generally use StatefulSnippets rather than RequestVars. I have several places in my Lift webapp where one should be redirected to a screen managed by a StatefulSnippet. Until recently I thought it would suffice to use S.mapSnippet to map the StatefulSnippet's method as a function. However, this approach has two shortcomings: (1) If the page uses multiple snippet methods it become tedious to write mapSnippet for each one. (2) Since the snippet can't be registered because it can only get a snippetName via private[http] API, any stateful links, redirects, or submits don't work. Of course a workaround may be custom replacement methods on the snippet that use multiple mapSnippets rather than registerThisSnippet, but again this can become tedious. Would it be possible to create a public API either to assign a snippet its name so it can be registered, or to retreive a snippet by name? Or better yet, assign its name in its constructor or the first time registerThisSnippet etc. is called? --~--~-~--~~~---~--~~ 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] How to give a time lmit to display a message
Hi, I need to display a message only for few seconds using SetHtml. E.g. SetHtml(msg,Text(Hello)). How can I do this Thanks. Sunanda --~--~-~--~~~---~--~~ 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: The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist
hi Tim, May I ask which version of lift is in question? master? 1.1-M6? Thank you. yk On Mon, Oct 26, 2009 at 3:12 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys, Im getting the below when building a fresh pull of lift - It doesnt even appear to be looking at scala-tools, despite it being defined. Very odd, any ideas? Cheers, Tim [INFO] Searching repository for plugin with prefix: 'scala'. [INFO] org.apache.maven.plugins: checking for updates from scala- tools.release [INFO] org.apache.maven.plugins: checking for updates from scala- tools.snapshot [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from scala- tools.release [INFO] org.codehaus.mojo: checking for updates from scala- tools.snapshot [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.release [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.snapshot [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] --~--~-~--~~~---~--~~ 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: About the ajaxButton's confirm ?
The work flow is like this: 1. When pressing the button, the js function will be executed, like the js confirm() method, if choose the 'NO' and nothing will be happen, but choose the 'YES' and the Ajax request is sent to the server 2. On server side Lift executes your scala function Cheers, Neil On Oct 25, 11:18 pm, Marius marius.dan...@gmail.com wrote: Please use this definition of the ajax button: def ajaxButton(text: NodeSeq, jsFunc: Call, func: () = JsCmd, attrs: (String, String)*): Elem I described the functionality here:http://groups.google.com/group/liftweb/browse_thread/thread/ec573c0e3... .. see the last post. Let me know if you have further questions. Br's, Marius On Oct 25, 1:24 pm, Neil.Lv anim...@gmail.com wrote: Hi all, I use the ajaxButton to delete the record from the database, and How can the ajaxButton surpport the confirm dialog when clicking the delete button(ajaxButton) ? 1:) I use this method that it will be show the confirm dialog when clicking the delete button, but it never call the deleteItemFromDb() method. ### ajaxButton(S.?(delete), Call(confirm, Str(are you sure?)), () = {deleteItemFromDb(); reDraw()}) ### 2:) When clicking the delete button, the record will be deleted from the db, but it doesn't show the confrim dialog (the js confirm dialog) . ### ajaxButton(S.?(delete), () = {deleteItemFromDb(); reDraw();}) Thanks for any suggestion ! Cheers, Neil ### --~--~-~--~~~---~--~~ 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] How to use the many-to-many relationship in the lift Model ?
Hi all, Dose anybody know that how to use the many-to-many relationship in the lift model ? * We need to create a 3 models to represent the 3 tables ( teachers, students, teacher_student ) ex: teachers - id, name, sex, age, ... students - id, name, sex, age, ... teacher_student - id, student_id, teacher_id * How to write the code in the model to represent this relationship ? Or any other ways that can achieve this purpose ? Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ 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: About the localization with lift:loc !
in the /index.html ### both of them are not work ! lift:loc locid=log.inLog in/lift:loc lift:loc id=log.inLog in/lift:loc ### Cheers, Neil On Oct 25, 6:27 pm, Timothy Perrett timo...@getintheloop.eu wrote: Neil, This is normal practice with java localisation - the best thing is do write all your strings then use native2ascii or similar tooling to convert it into the unicode representation. Glad you found my article helpful. Cheers, Tim On Oct 25, 5:02 am, Neil.Lv anim...@gmail.com wrote: if i use this code and it works correctly ! Code: ### login = \u52a8\u4f5c ### But it's so difficult to write code ! I don't know what happens with it . Cheers, Neil On Oct 25, 7:19 am, David Pollak feeder.of.the.be...@gmail.com wrote: Please make sure your lift-core_zh_CN.properties was saved as UTF-8 On Sat, Oct 24, 2009 at 11:31 AM, Neil.Lv anim...@gmail.com wrote: Hi all, I create a props file in the resources folder /src/main/resources/ i18n/lift-core_zh_CN.properties And i changed the log.in text value. Now i use this code in my index.html page, and it doesn't corretly. (garbled) ### it doesn't work lift:loc locid=log.inLog in/lift:loc ### This information from: http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-w... Cheers, Neil -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ 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 use the many-to-many relationship in the lift Model ?
Neil, The following thread has very good information on many-to-many implementation: http://groups.google.com.my/group/liftweb/browse_thread/thread/5793917fee419f89 I can't summarize it for you but the thread above do give you some pointers. Cheers, yk On Mon, Oct 26, 2009 at 11:52 AM, Neil.Lv anim...@gmail.com wrote: Hi all, Dose anybody know that how to use the many-to-many relationship in the lift model ? * We need to create a 3 models to represent the 3 tables ( teachers, students, teacher_student ) ex: teachers - id, name, sex, age, ... students - id, name, sex, age, ... teacher_student - id, student_id, teacher_id * How to write the code in the model to represent this relationship ? Or any other ways that can achieve this purpose ? Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ 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: NetBeans is barfing on the new pom.xml structure
Thanks David, that's pretty much the plan for me too. If you come across something out of the way in the current build configs, feel free to point them. It would be very helpful. Cheers, Indrajit On 25/10/09 12:26 AM, David Bernard wrote: At work, I configure the root pom.xml with (increase size of parent pom.xml but define the rules for every children (idem for dependencies)) pluginManagement plugins plugin groupIdorg.scala-tools/groupId artifactIdmaven-scala-plugin/artifactId version2.12.2/version /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdbuildnumber-maven-plugin/artifactId version1.0-beta-2/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.6/version /plugin plugin groupIdnet.alchim31.maven/groupId artifactIdmaven-basicwebstart-plugin/artifactId version0.2/version /plugin plugin groupIdorg.jvnet.maven.incrementalbuild/groupId artifactIdincremental-build-plugin/artifactId version1.2/version /plugin /plugins /pluginManagement On Sat, Oct 24, 2009 at 18:55, Indrajit Raychaudhuri indraj...@gmail.com wrote: Thanks davidB for pointing! On 24/10/09 9:19 PM, David Bernard wrote: Not setting version of plugin : * create un-reproductible build (over time and developer configuration). Just found this one too: http://www.mail-archive.com/d...@maven.apache.org/msg82398.html. I had no idea that the notion of RELEASE can be unsafe. Have seen this in quite a few OSS project for sure. * using le last release is not always a good idea (eg : the last 2 version of maven-eclipse-plugin introduce regression). Indeed, for odd plugins we might have to do this. But that won't have affected every other configuration. At least that was the plan. As mentioned, I'll go ahead and add the version property for extensions and plugins. BTW, what is the recommended version for maven-eclipse-plugin? I'll set that accordingly. /davidB On 2009-10-24, Indrajit Raychaudhuriindraj...@gmail.comwrote: Plugin and extension versions are optional in Maven pom. Not providing the version has a small advantage - it defaults to RELEASE and pulls up the latest release automatically. While it's possible that a plugin version would have backward incomplete changes, in Lift we hardly do anything complicated to be affected drastically. We could always 'pin' a version for the odd plugins that were affected. Thus, I wanted to give that a go. This works well from the CLI (typically what I use for build). The intent for tweaking the poms were primarily to: - reduce the size of pom by discarding the optional/default settings - remove redundant settings in multiple pom - add some inline docu to stop one running away from a pom.xml - contribute a little in making maven not 'download the internet' Too bad the IDEs are not co-operating! Thanks Kris/David for raising this. I am going to add versions for all the plugins and extensions tonight. Unstable pom.xml is the last thing we want (even if that means redundant/optional settings make their way into the poms). Cheers, Indrajit On 24/10/09 7:22 AM, Kris Nuttycombe wrote: I ran into that -it's a missing version number in the root pom. Fixed in my kjn-loc-wip branch if you just want to grab it from there. On Fri, Oct 23, 2009 at 3:41 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Any idea why NetBeans doesn't like the new Lift pom structure? 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 Surf the harmonics --~--~-~--~~~---~--~~ 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: The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist
Tim, That's odd indeed. Hopefully your local repository is not broken. Can you please attempt it on the branch irc_wip_restruct_stage and see if it happens there too? If it still persists for you I'll take a look later in the day. Cheers, Indrajit On 26/10/09 12:42 AM, Timothy Perrett wrote: Guys, Im getting the below when building a fresh pull of lift - It doesnt even appear to be looking at scala-tools, despite it being defined. Very odd, any ideas? Cheers, Tim [INFO] Searching repository for plugin with prefix: 'scala'. [INFO] org.apache.maven.plugins: checking for updates from scala- tools.release [INFO] org.apache.maven.plugins: checking for updates from scala- tools.snapshot [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from scala- tools.release [INFO] org.codehaus.mojo: checking for updates from scala- tools.snapshot [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.release [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from scala-tools.snapshot [INFO] artifact org.apache.maven.plugins:maven-scala-plugin: checking for updates from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] --~--~-~--~~~---~--~~ 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 use the many-to-many relationship in the lift Model ?
Neil, In a nutshell... assuming teacher is the main entity and student is another entity. You will need to: In your teachers class: 1. extend with ManyToMany trait 2. declare a students object of type MappedManyToMany(teacher_student, teacher_student.teacher_id, teacher_student.student_id, students) In your students class: 1. declare a teacher object of type MappedLongForeignKey(this, Role) In your teacher_student class: 1. declare a teacher_id object of type MappedLongForeignKey(this, teachers) 2. declare a student_id object of type MappedLongForeignKey(this, students) *Note: the names are according to your convention. Yours, yk On Mon, Oct 26, 2009 at 12:29 PM, YING-KWANG TU ying.kwang...@gmail.comwrote: Neil, The following thread has very good information on many-to-many implementation: http://groups.google.com.my/group/liftweb/browse_thread/thread/5793917fee419f89 I can't summarize it for you but the thread above do give you some pointers. Cheers, yk On Mon, Oct 26, 2009 at 11:52 AM, Neil.Lv anim...@gmail.com wrote: Hi all, Dose anybody know that how to use the many-to-many relationship in the lift model ? * We need to create a 3 models to represent the 3 tables ( teachers, students, teacher_student ) ex: teachers - id, name, sex, age, ... students - id, name, sex, age, ... teacher_student - id, student_id, teacher_id * How to write the code in the model to represent this relationship ? Or any other ways that can achieve this purpose ? Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ 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 use the many-to-many relationship in the lift Model ?
What is your intention regarding the students.teacher object? - YING-KWANG TUying.kwang...@gmail.com wrote: Neil, In a nutshell... assuming teacher is the main entity and student is another entity. You will need to: In your teachers class: 1. extend with ManyToMany trait 2. declare a students object of type MappedManyToMany(teacher_student, teacher_student.teacher_id, teacher_student.student_id, students) In your students class: 1. declare a teacher object of type MappedLongForeignKey(this, Role) In your teacher_student class: 1. declare a teacher_id object of type MappedLongForeignKey(this, teachers) 2. declare a student_id object of type MappedLongForeignKey(this, students) *Note: the names are according to your convention. Yours, yk On Mon, Oct 26, 2009 at 12:29 PM, YING-KWANG TU ying.kwang...@gmail.comwrote: Neil, The following thread has very good information on many-to-many implementation: http://groups.google.com.my/group/liftweb/browse_thread/thread/5793917fee419f89 I can't summarize it for you but the thread above do give you some pointers. Cheers, yk On Mon, Oct 26, 2009 at 11:52 AM, Neil.Lv anim...@gmail.com wrote: Hi all, Dose anybody know that how to use the many-to-many relationship in the lift model ? * We need to create a 3 models to represent the 3 tables ( teachers, students, teacher_student ) ex: teachers - id, name, sex, age, ... students - id, name, sex, age, ... teacher_student - id, student_id, teacher_id * How to write the code in the model to represent this relationship ? Or any other ways that can achieve this purpose ? Thanks for any suggestion ! Cheers, Neil --~--~-~--~~~---~--~~ 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 Actor names
I agree, the names could be improved. Is there still a chance to do so? Heiko 2009/10/25 Naftoli Gugenheim naftoli...@gmail.com I was looking at Actor.scala, which contains SimpleActor, SimplestActor, TypedActor, GenericActor, and ForwardableActor. Some people will say, once you know what something does, who cares what it's called? But names can really make a difference in learning curve, memorization, and code readability. Other than ForwardableActor, do these names reflect what they do? My suggestions: Change SimpleActor to Messageable (it only defines an abstract ! method; arguably more general than an actor) SimplestActor to AnyMessageable (it's SimpleActor with Any for T) TypedActor to RespondingActor etc. (what it adds is !? and !! methods) GenericActor to AnyRespondingActor (or could it be replaced by 'RespondingActor with AnyMessageable'?) ForwardableActor to ForwardingActor (it doesn't get forwarded, it forwards messages) Thoughts? Thanks. -- Heiko Seeberger My job: weiglewilczek.com My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---