[Lift] Added upload progress widget
Hey guys, I've just reworked the upload progress widget and could do with a few opinions... it still feels pretty raw but is not perfectly functional in a bunch of different browsers and i've managed to remove the implementing boiler plate. Boot up the lift-widgets example application and have a go with it. Interested in any thoughts / feedback. 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: Added upload progress widget
Oops!!! I meant to say it IS perfectly functional in browsers! Lol. On 19/07/2009 16:03, Timothy Perrett timo...@getintheloop.eu wrote: I've just reworked the upload progress widget and could do with a few opinions... it still feels pretty raw but is not perfectly functional in a bunch of different browsers and i've managed to remove the implementing boiler plate. --~--~-~--~~~---~--~~ 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: Disabling the lift auto-reload on webapp restart?
@ellis, I too found this annoying, thats why I use java rebel as the classes are just replaced wholesale dynamically while the container is running - no need for a restart (unless its a major class change that it is unable to swap out). Cheers, Tim On Jul 20, 10:32 am, Ellis ellis.whiteh...@gmail.com wrote: Third, if you want the issue resolved, please open a ticket. Done On Jul 16, 6:27 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Jul 16, 2009 at 3:20 AM, Ellis ellis.whiteh...@gmail.com wrote: liftweb auto-reinjects it. Hmm, I know it puts some extra code in, but I stopped the auto-loading a few weeks ago by just editing the template file... Another possibility is to tell lift not to use jQuery. It's just a single command you need to put in Boot.scala, but I don't remember it off-hand. It's described in the jQuery section of David's Exploring Lift book, which you can download online. First, I didn't write Exploring Lift... better authors than me wrote it. Second, don't toss jQuery... it's not jQuery that's causing the problem. Lift has built in GC and Comet support. One of the two of those is causing the problem that's you are experiencing. If you pull jQuery, you'll just break a bunch of your application (and Lift puts in jQuery, or YUI or whatever Ajax library you've designated automatically in rendered pages unless you affirmatively disable GC and do not include Comet components in the page.) Third, if you want the issue resolved, please open a ticket. On Jul 15, 4:31 pm, fbettag fr...@bett.ag wrote: liftweb auto-reinjects it. On Jul 15, 2:27 pm, Ellis ellis.whiteh...@gmail.com wrote: This would interest me too. (but if you don't need jQuery, you can comment out the script... tag in the template, e.g. templates-hidden/default.html) On Jul 15, 1:18 pm, fbettag fr...@bett.ag wrote: The Auto-Reload feature done with jQuery really starts to get on my nerves, i often find my self going back to the tab in my firefox and trying to debug the last error i got via ajax in my firebug.. but it's all gone thanks to the auto-reload. Is there any way to turn it off? -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Best practice for creating a view-less, lightweight controller/dispatcher
Change your dispatcher to be: LiftRules.dispatch.prepend { case r @ Req(u :: id :: Nil, , GetRequest) = () = { // lookup in your database here... Full(RedirectResponse(fullyQualifiedUrl)) } } I can then pass the id parameter to your database query then do a RedirectResponse which is the appropriate LiftResponse. In your snippet your using S.redirectTo which is not the correct context for its use. Does that help? Cheers, Tim On Jul 20, 11:03 am, Juan M Uys opy...@gmail.com wrote: Good day, guys. First of all, David, thanks for a great tool. I started my first project yesterday and it's been fun so far. I'm creating a URL shortener, and would like to know what the best practice is for creating a light-weight controller that has no view (no associated form). Basically, clients will request:http://localhost:8080/u/123 ...and I will redirect to a URL which was saved under id=123 Here's my first attempt at mapping to the handler for these kind of URLs: line 43/44:http://github.com/opyate/yauser/blob/2ce8feb7da369f7fc3ef755a192c42ae... And, the handler:http://github.com/opyate/yauser/blob/2ce8feb7da369f7fc3ef755a192c42ae... This code does not work, at the moment. Here are the different use-cases and associated failures: 1) If I request:http://localhost:8080/u/123 ...I get The Requested URL /u/123 was not found on this server 2) If I request:http://localhost:8080/u/ ...I get The Requested URL /u/ was not found on this server 3) If I request:http://localhost:8080/u ...I get an HTTP 500 with: net.liftweb.http.ResponseShortcutException: Shortcut ... on the line in the handler which does the actual redirect. Thanks! -- juan Jonathan Swifthttp://www.brainyquote.com/quotes/authors/j/jonathan_swift.html - May you live every day of your life. --~--~-~--~~~---~--~~ 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: Hudson not building?
Hey Jeppe, Thats strange, i've just kicked off a hudson build manually, so we'll see if it works or not - i'll report back shortly Derek / DPP can you look into this? Cheers, tim On Jul 20, 12:03 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, It seems the latest Lift build onhttp://hudson.scala-tools.org/job/Lift/is 10 days old, same with the jars inhttp://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNA... Yet, many changes have been committed to github which I assume is the master? I didn't notice until I tried making a release build since I'm building lift from source in the dev env. /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: Hudson not building?
Jeppe, There is something odd going on with hudson it seems - even the manual build does nothing... the modules say that didnt run even tho its taking nearly an hour to complete. Derek, is this perhaps related to the increase in open file handles you made previously? Cheers, Tim On Jul 20, 12:15 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey Jeppe, Thats strange, i've just kicked off a hudson build manually, so we'll see if it works or not - i'll report back shortly Derek / DPP can you look into this? Cheers, tim On Jul 20, 12:03 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, It seems the latest Lift build onhttp://hudson.scala-tools.org/job/Lift/is10 days old, same with the jars inhttp://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNA... Yet, many changes have been committed to github which I assume is the master? I didn't notice until I tried making a release build since I'm building lift from source in the dev env. /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] Article: Lift snippet selection - DispatchSnippet vs snippet reflection
Hey guys, Just posted a new article about lift snippets: http://is.gd/1FbDw - perhaps it will help someone :-) 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: Hudson not building?
Awesome - appears to have built again... what a strange error; guess we'll just have to keep an eye on it. http://hudson.scala-tools.org/job/Lift/lastSuccessfulBuild/ Cheers, Tim On Jul 20, 2:25 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm showing these errors in the log: Jul 20, 2009 5:31:30 AM hudson.model.AbstractProject checkout INFO: Lift #1045 aborted java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireInterruptibl y(AbstractQueuedSynchronizer.java:813) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly( AbstractQueuedSynchronizer.java:1137) at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.ja va:312) at hudson.model.AbstractProject.checkout(AbstractProject.java:800) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266) at hudson.model.Run.run(Run.java:923) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:234) at hudson.model.ResourceController.execute(ResourceController.java:93) at hudson.model.Executor.run(Executor.java:119) Jul 20, 2009 5:31:30 AM hudson.model.Run run INFO: Lift #1045 main build action completed: FAILURE Jul 20, 2009 6:05:55 AM hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling hudson.plugins.git.GitException: Failed to fetch at hudson.plugins.git.GitAPI.fetch(GitAPI.java:92) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:103) at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:143) at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:129) at hudson.FilePath.act(FilePath.java:552) at hudson.plugins.git.GitSCM.pollChanges(GitSCM.java:129) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:857) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:382) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:417) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908) at java.lang.Thread.run(Thread.java:619) I'm going to restart hudson and see if that helps... Derek On Mon, Jul 20, 2009 at 6:09 AM, Timothy Perrett timo...@getintheloop.euwrote: Jeppe, There is something odd going on with hudson it seems - even the manual build does nothing... the modules say that didnt run even tho its taking nearly an hour to complete. Derek, is this perhaps related to the increase in open file handles you made previously? Cheers, Tim On Jul 20, 12:15 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey Jeppe, Thats strange, i've just kicked off a hudson build manually, so we'll see if it works or not - i'll report back shortly Derek / DPP can you look into this? Cheers, tim On Jul 20, 12:03 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, It seems the latest Lift build onhttp:// hudson.scala-tools.org/job/Lift/is10 days old, same with the jars inhttp:// scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/1.1-SNA... Yet, many changes have been committed to github which I assume is the master? I didn't notice until I tried making a release build since I'm building lift from source in the dev env. /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: calling java: AWSCredentials does not have a constructor - anybody recongnize this type of error ?
I agree, looks fine you don¹t mention if your using maven or whatever, but IMO, make sure you¹ve set the dependencies properly and that your running the right goal on your pom.xml Also, you probably don¹t want to post your secret for S3 as people could log into your account with it. Cheers, Tim On 20/07/2009 16:52, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jul 20, 2009 at 8:04 AM, kjetilge kjeti...@gmail.com wrote: I'm trying out the jets3t library for handling S3 storage. But when I try to make calls to methods in the library I get: AWSCredentials does not have a constructor. Here's my code: package s3test object Main { import org.jets3t.service.S3Service import org.jets3t.service.S3ServiceException import org.jets3t.service.impl.rest.httpclient.RestS3Service import org.jets3t.service.model.S3Bucket import org.jets3t.service.security.AWSCredentials def main(args: Array[String]) :Unit = { val awsAccessKey = 0MC80SD02DQTGPP5XZ02 val awsSecretKey = EZDhuveb/94Fibwu48SCKVuiCV4T3PGlkYQTWdCr var awsCredentials = new AWSCredentials(awsAccessKey, awsSecretKey) println() } } I've tried the equivalent code in Java, and that works, so the library should be imported correctly. (Using NetBeans) Have anybody succeeded using this library ? Doe's anybody know what's going on here ? I was able to compile the above code with: scalac -cp ~/lang/jets3t/jars/jets3t-0.5.0.jar S3.scala --~--~-~--~~~---~--~~ 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: Article: Lift snippet selection - DispatchSnippet vs snippet reflection
Hey Marius, Thanks for the critical feedback :-) I have no benchmarks to speak of, just pouring out my general understanding onto my blog - I do remember DPP saying some time ago that DispatchSnippets were really the way to go for most things of any serious implementation. Cheers, Tim On 20/07/2009 17:12, marius d. marius.dan...@gmail.com wrote: Good article but do you have some concrete benchmarks between Snippet and DispatchSnippet? In modern JVM memory allocation is pretty cheap due to heap preparation JVM makes and reflection invocation doesn't bring too much overhead ... not anymore. The article seams to present the two from an optimization perspective but I don;t see much optimization here. Of course DispatchSnippet invocation is faster but the question is how much. And for say thousands of concurrent requests per cluster node I have the feeling that the delta is not that significant. Furthermore these deltas become totally negligible when during a request life cycle we're hitting DB-s. remote services etc. Personally I don't really agree regular snippets should be used in Dev mode only, well not until I see some compelling numbers. --~--~-~--~~~---~--~~ 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: Feedback on presentation
+1 it looks really good mate. Presumably your doing a live demo at the start or similar? Cheers, Tim Sent from my iPhone On 20 Jul 2009, at 23:09, David Pollak feeder.of.the.be...@gmail.com wrote: Looks good to me. On Mon, Jul 20, 2009 at 3:05 PM, Derek Chen-Becker dchenbec...@gmail.com wrote: I've attached the slides that I'll be using for my talk to the Boulder JUG in August. It's mainly cribbed from the excellent presentations that other people here have made, but I would appreciate any feedback on content or structure. Thanks, Derek -- 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: ResourceServer problem
Naftoli, Can you explain what your trying to do? My assumption is that you have a secondary jar away from your WAR and you want to load template from there? A completely valid use case... Right now there are ways of doing it but you then don't get a lot of the stuff lift provides for free (like template localization) - you would essentially need to re-implement this if you need it. I wanted to do something similar a while back, and DPP did say he'd write an example but I think he got a bit swamped with other things. Ross is right when he says you'd need to do something with ViewDispatchPF: type ViewDispatchPF = PartialFunction[List[String], Either[() = Box[NodeSeq], LiftView]] Does that help? Cheers, Tim On 22/07/2009 06:11, Ross Mellgren dri...@gmail.com wrote: ResourceServer is for static things, if I understand correctly. I don't think it's used for template lookup. Taking a quick glance (and I'm no expert at lift) it looks like it looks for templates just in the servlet context (e.g. in your WAR) and view packages under any packages registered with LiftRules.addToPackages unless you muck with LiftRules.viewDispatch or LiftRules.finder. -Ross On Jul 22, 2009, at 12:55 AM, Naftoli Gugenheim wrote: Now a direct call to ResourceServer does work, but the template is still not being found. Any ideas? - Naftoli Gugenheimnaftoli...@gmail.com wrote: In order to diagnose why my template isn't getting loaded from its jar, I'm calling the following in a snippet: ResourceServer.findResourceInClasspath(S.request.open_!, tableeditor :: default.html :: Nil) When I navigate to the snippet I see: Exception occurred while ... Message: java.io.FileNotFoundException: JAR entry toserve/ tableeditor/default.html not found in (name of the jar file) sun.net.www.protocol.jar.JarURLConnect.connect(JarURLConnection.java: 122) It certainly looks to me like the file is there in the jar. Besides, if it wasn't, how would it know which jar it's not in? What does this mean? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Starting with lift, problem
Just to clarify what Jeppe wrote, you need the = because that tells the compiler this method will be returning a concrete type, not Unit (like void in Java) Cheers, Tim On 22/07/2009 11:20, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: You need a = before the function body: def handleYear(year: String) = { ... the form's been submitted... do something } /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: Newbee question
You mean like the one on the left hand side of the home page titled The Lift Book? ;-) Cheers, Tim On 22/07/2009 14:06, Tim Nelson tnell...@gmail.com wrote: @Lift coders: Is there a reason there is no link anywhere on the liftweb.net http://liftweb.net site to the Lift Book? --~--~-~--~~~---~--~~ 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: Weekly Article Request
Xavi, I'll do the one on localization - think im the only committer doing any heavy duty localization work so probably best placed to write an example / how-to. I'll try and churn something out onto my blog then just convert it wholesale onto the lift wiki. Cheers, Tim PS: You deserve a medal for your initiative here, it truly is most welcome... the commit team need someone externally to kick us into writing documentation... you are doing good work, keep it up. On Jul 22, 4:22 am, Xavi Ramirez xavi@gmail.com wrote: Hello, My name is Xavi and I've volunteered as the wiki garden. Every week I'll post a couple of articles topics that we should work on. Here are my picks for this week. Articles we should write: How to parse and create JSON How to use to create a login system using OpenID How to hide and show Admin content HowTo get/store session data Lift's Rendering Pipeline (here's helpful posthttp://groups.google.com/group/liftweb/msg/1f156eeec71da397) Articles we should update:http://wiki.liftweb.net/index.php/SetUp_jEdithttp://wiki.liftweb.net/index.php/HowTo_start_a_new_liftwebapphttp://wiki.liftweb.net/index.php/How_to_localize Please don't feel limited to the pages I mentioned above. Feel free to edit/create any page you like. If you need an account, just ask and I'll create one for you. Also if there's an article you'd like to see written or improved, please let us know! Thanks, Xavi --~--~-~--~~~---~--~~ 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: Acceding object fields in template
José, im afraid it doesn't do that, you have to use explicit binds as far as im aware. Perhaps you'll find this article on lifts binding mechanism useful: http://is.gd/sfyT Cheers, Tim On Jul 22, 11:02 am, José María josemariar...@gmail.com wrote: Hi, Is it possible to access to the field of an object binded to a name in a template? bind(data , xhtml, product -- product) And then in the template: h1 id=Titledata:product.name //h1 Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: how to create a dynamic form in lift?
Hey, Take a read of: http://is.gd/sfyT Does that help understanding how you can use bind with forms? Cheers, Tim On 23/07/2009 08:34, JanWillem Tulp janwillem.t...@gmail.com wrote: Hi community, I was wondering: what is a nice and efficient way to do the following in Lift: I would like to create a form where users can dynamically add fields for a specific type of data. For instance, say I have a form with the fields name, display name and date of birth. Of course, I can create a a snippet where I can do my validation and other handling. Now I want to add a button that adds an additional field, but I don't know beforehand how the input of this new form field should be handled. The options a user can pick from is fixed (for instance numeric field, text field, email field, etc.) so that I can write validation and handling for a specific type, but the user should be free to add as many fields as he likes, of any type he likes. Let me give you an example: the current form contains: name, display name, date of birth. One user clicks a button, and wants to add a phone number field, so that his form will display: name, display name, date of birth, phone number However, another user might add another type of field, for instance a zipcode field, so that his form will display: name, display name, date of birth, zipcode Of course, a field that expects a phone number should be validated differently than a field that expects a zipcode. How do I create this dynamic kind of form, since I can not map the form fields directly to a fixed set of objects in my snippets, because this is not known beforehand, but depends on user input. I hope you understand my question, and that you have some good suggestions. Thanks! JanWillem Tulp I hope that y --~--~-~--~~~---~--~~ 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: todo app., Oracle: Invalid column type
Hey Jon, Sounds like Mapper is not quite sure what to do with one of the types it created - If memory serves Derek is looking after the DB drivers these days (the fellow who wrote oracle driver isn't active anymore), so my advice would be log a issue here so that it doesn't get missed: http://github.com/dpp/liftweb/issues Cheers, Tim On Jul 23, 12:12 pm, Jon Kleiser jon.klei...@usit.uio.no wrote: Hi, I just tried to run the todo app. (http://liftweb.net/docs/getting_started/mod_master.html) against our Oracle (10something) database. The two tables got created like this: INFO - CREATE TABLE users (id ROWID , firstname VARCHAR(32) , lastname VARCHAR(32) , email VARCHAR(48) , locale VARCHAR(16) , timezone VARCHAR(32) , password_pw VARCHAR(48) , password_slt VARCHAR(20) , textarea VARCHAR(2048) , validated NUMBER , uniqueid VARCHAR(32) , superuser NUMBER) INFO - ALTER TABLE users ADD CONSTRAINT users_PK PRIMARY KEY(id) INFO - CREATE TABLE todo (id ROWID , desc_c VARCHAR(128) , done NUMBER , owner NUMBER , priority NUMBER) INFO - ALTER TABLE todo ADD CONSTRAINT todo_PK PRIMARY KEY(id) INFO - CREATE INDEX users_email ON users ( email ) INFO - CREATE INDEX users_uniqueid ON users ( uniqueid ) INFO - CREATE INDEX todo_owner ON todo ( owner ) I then used Oracle's SQLDeveloper to confirm that the tables had been created and had the right columns. However, when I tried to Sign Up in the todo app., I got this nasty stuff right in the browser (nothing in the log): Exception occured while processing /user_mgt/sign_up Message: java.sql.SQLException: Invalid column type oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePrepared Statement.java:9262) oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePrepared Statement.java:8843) oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatemen t.java:9316) net.liftweb.mapper.MetaMapper$$anonfun$12$$anonfun$prepStat$1$1.apply(MetaM apper.scala:622) net.liftweb.mapper.MetaMapper$$anonfun$12$$anonfun$prepStat$1$1.apply(MetaM apper.scala:616) scala.Iterator$class.foreach(Iterator.scala:414) scala.Iterator$$anon$14.foreach(Iterator.scala:265) scala.Iterable$class.foreach(Iterable.scala:256) scala.collection.mutable.HashMap.foreach(HashMap.scala:33) net.liftweb.mapper.MetaMapper$$anonfun$12.prepStat$1(MetaMapper.scala:616) net.liftweb.mapper.MetaMapper$$anonfun$12$$anonfun$19.apply(MetaMapper.scal a:659) net.liftweb.mapper.MetaMapper$$anonfun$12$$anonfun$19.apply(MetaMapper.scal a:659) net.liftweb.mapper.DB$$anonfun$prepareStatement$2.apply(DB.scala:292) net.liftweb.mapper.DB$$anonfun$prepareStatement$2.apply(DB.scala:288) net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:241) net.liftweb.util.Helpers$.calcTime(Helpers.scala:29) net.liftweb.mapper.DB$.prepareStatement(DB.scala:288) net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:658) net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:578) net.liftweb.mapper.DB$.use(DB.scala:305) net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:577) com.liftworkshop.model.User$$$M$5d72f813.save(User.scala:9) com.liftworkshop.model.User$$$A$5d72f813.save(generated) com.liftworkshop.model.User$.save(generated) net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:84) net.liftweb.mapper.Mapper$$anonfun$save$1.apply(Mapper.scala:84) net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:65) net.liftweb.mapper.Safe$.runSafe(Safe.scala:44) net.liftweb.mapper.Mapper$class.runSafe(Mapper.scala:50) com.liftworkshop.model.User$$M$7ee2c84f.runSafe(User.scala:24) com.liftworkshop.model.User$$A$7ee2c84f.runSafe(generated) com.liftworkshop.model.User.runSafe(generated) net.liftweb.mapper.Mapper$class.save(Mapper.scala:83) com.liftworkshop.model.User$$M$7ee2c84f.save(User.scala:24) com.liftworkshop.model.User$$A$7ee2c84f.save(generated) com.liftworkshop.model.User.save(generated) net.liftweb.mapper.MetaMegaProtoUser$class.testSignup$1(ProtoUser.scala:343 ) net.liftweb.mapper.MetaMegaProtoUser$$anonfun$innerSignup$1$1.apply(ProtoUs er.scala:360) net.liftweb.mapper.MetaMegaProtoUser$$anonfun$innerSignup$1$1.apply(ProtoUs er.scala:360) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:941) net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:941)
[Lift] Re: How to use SHtml.ajaxCall?
Couldn't agree more, just gist it... http://gist.github.com/ Cheers, Tim On 23/07/2009 16:09, Lance Zheng lanc...@gmail.com wrote: (google group is not a good place to show code, no syntax highlight) --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
Jeppe, I recently explored SBT and was really impressed by how far they have come - you can use it today, they have a lift example on their wiki. When they add code-generation (a la archetypes) then I'll make some SBT plugins for lift as its a pretty sweet all-scala system. Good luck Cheers, Tim On 24/07/2009 10:23, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, We're currently using Gradle to build our Lift app. I've used Gradle previously on a Java project and really liked it. Unfortunately, it's Scala support is just a patch against an older version, which doesn't work with the latest releases. So before I jump in and try to hack some Scala support for Gradle, I thought I would ask here. So what are good build tools for a Lift project? Maven and ant are not an option :-) Some requirements are: - Extendable which probably implies some kind of scripting support in the build file (we have all our deployment and release automation scripted) - Dependency management (ability to read Maven repos) - Multiplatform - (OS X, Windows, Linux) - Hudson integration - Ability to package war, run jetty etc. - Run specs/tests - Ability to either call Java libraries or have good libs for integration with AWS (EC2, S3 etc) - For now this is a Scala only project. I've briefly looked at buildr but didn't get it to run on OS X. Another option might be sbt, but unsure how that works? Suggestions? /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: Good build tool for Lift/Scala projects
They have a pretty extensive plugin architecture so its my understanding you can just write scala to do whatever you want... http://code.google.com/p/simple-build-tool/wiki/SbtPlugins Checkout n8han's dbDispath - it uses SBT so might give you more of a feel how it can work: http://databinder.net/dispatch/About Cheers, Tim On 24/07/2009 10:57, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: How easy is it to do system automation stuff in SBT? I.e. create archives, scp them somewhere, run remote ssh commands etc? Can you use ant commands as a last resort? --~--~-~--~~~---~--~~ 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: Good build tool for Lift/Scala projects
Wow great tip david! Its for reasons like this that you are the maven master ;-) Cheers, Tim On 24/07/2009 13:39, David Bernard david.bernard...@gmail.com wrote: if what you dislike in pom, it's the xml (like me) try yaml (http://wiki.github.com/mrdon/maven-yamlpom-plugin) ;) --~--~-~--~~~---~--~~ 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: JavaRebel has expired
Thanks Ty, you beat me too it. I've sent new installers for DPP to put up onto scala-tools, when he does that, this issue will go away forever. Thanks Tim On Jul 24, 4:05 pm, TylerWeir tyler.w...@gmail.com wrote: http://groups.google.com/group/liftweb/browse_thread/thread/ca49bc965... On Jul 24, 11:04 am, ess friedrich.es...@gmail.com wrote: Well, if I start maven, I get the following expired-message mvn archetype:create -U \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=1.0 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=net.liftweb.hello -DartifactId=hello-lift ## ZeroTurnaround JavaRebel 1.2.2 (200812021546) (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved. YOUR JAVAREBEL LIMITED LICENSE HAS EXPIRED! This product is licensed to Scala Community until July 1, 2009 for unlimited number of developer seats on site. With the following restrictions: For use with Scala only ## --~--~-~--~~~---~--~~ 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 (AsyncWeb || ...)
Hey Marius, I read your email with interest - myself and viktor were only today discussing all the various technologies such as this which are now flooding the wider JEE eco-system and how lift can interoperate with them (or if indeed we need to / should) I think perhaps there is something wider to consider here: possibly abstract things away so pluging lift into something other than HttpServlet is fairly straight forward. You talk below about AsyncWeb, but it seems the same might be true for the Grizzly NIO family of projects? Im not sure, nor am I familiar with them in great detail but your right, there are a lot of new options now that didn't previously exist so we should be considering them. Today I read a preso that was suggesting servlet 3.0 wont deliver feature-full cross-container comet support as everyone had hoped; if that's the case, then sure, supporting other architectures would probably be a pretty good idea :-) Cheers, Tim On 25/07/2009 19:06, Marius marius.dan...@gmail.com wrote: Hi, Did anyone played with AsyncWeb? .. Looks pretty promising but I think having Lift working properly with it we need some adaptions. For instance: 1. Lift uses HttpServletXXX references provided by JEE containers. One solution that avoids vast code change is Lift is to bridge AsyncWeb API through our own implementation of HttpServlet, HttpServletXXX etc. 2. Session management .. We'd also need a bridge for HttpSession .. but that should be pretty straight forward. (Fortunately we have LiftSession only bridged to HTTP session today.) 3. Comet support. Async Web fundamental concept seems to map pretty well to Comet model. Probably they don't have the suspend/resume mechanism as Jetty but there are some other means to do it right. Need to look more into it ... The point is that perhaps we should expand a bit and not depend so much on JEE web container anymore as there are other viable alternatives. We just need to build a flexible and transparent wiring mechanism. I'll probably start looking more into this path but first I'd like to see your thoughts ... Br's, Marius --~--~-~--~~~---~--~~ 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: url rewrite subdomain?
Id say this is a fairly common idiom with multi-tenant systems... Cheers, Tim On Jul 26, 8:30 am, marius d. marius.dan...@gmail.com wrote: What is the usecase of rewriting the hostname? ... Having multiple subdomains mapped to the same IP address and want to discriminate them? Br's, Marius On Jul 26, 1:22 am, JanWillem Tulp janwillem.t...@gmail.com wrote: Hi all, most examples I have seen about Lift URL rewriting are about the path of the URL, the part that comes after the hostname (and port). But is it also possible to do URL rewriting on subdomains? For instance, can I rewrite a URL where the account name is used as a subdomain, something like:http://myaccount.example.comsothat it maps to something similar tohttp://www.example.com?account=myaccount And is URL rewriting for subdomains always possible, or are there some prerequisities from a hosting company or something? Thanks! JanWillem Tulp --~--~-~--~~~---~--~~ 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: Image problems...
Hey Joe, Can you post your code? Are the images on the filesystem or held in a database etc? Cheers, Tim On Jul 25, 7:28 pm, Joe Wass j...@folktunefinder.com wrote: I'm completely stumped. I'll give the background for the sake of completeness but I'm not sure if it will help or not. It's more of a Jetty problem but perhaps someone here can help. Standard Jetty set-up running one Lift instance. Mac OS X. I have a snippet which transforms the XML input, renders an image, saves it to disc under the webroot/images/ directory with a filename taken from the MD5 of the contents, such as c5669d3eedcf7d305dcf9f88a61b3ee0.png . The snippet then returns an img / with a reference to the generated image for inclusion in the output. Most of the time most of the images work. But most of the time some of them don't, and some of the images are not rendered by the browser. Attempting to view a problem image in the browser (Camino and Firefox) doesn't work: the image is not displayed, suggesting that something is vaguely wrong. Viewing it in another browser (Safari and with QuickTime), the image works fine. When viewing the file directly with Camino (i.e. file://...), the image shows fine (the file itself is not corrupted). I can only assume that something goes wrong in the transport of the image. The URIs that do fail, fail consistently, it's not intermittent. Restarting Jetty makes no difference, so I don't think it's that the file was created after the server started. Also, the render is a blocking call, so there's no chance that the file is still open / hasn't been saved before the HTML is sent and the browser requests the images. The only thing I can imagine is that the MIME type is mangled, so I put the appropriate mapping in web.xml: mime-mapping extensionpng/extension mime-typeimage/png/mime-type /mime-mapping But still no cigar. The MIME type looks to be OK and I've verified that the number of bytes is correct. HTTP/1.1 200 OK Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=1dbeh8eq4mtu0;Path=/ Content-Type: image/png Content-Length: 25488 Last-Modified: Sat, 25 Jul 2009 15:38:19 GMT Server: Jetty(6.1.16) For completeness, the headers from an image that does load fine: HTTP/1.1 200 OK Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: JSESSIONID=15dt649lzovc4;Path=/ Content-Type: image/png Content-Length: 18657 Last-Modified: Sat, 25 Jul 2009 15:41:35 GMT Server: Jetty(6.1.16) Very very puzzled about this. Any clues? Cheers Joe --~--~-~--~~~---~--~~ 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: url rewrite subdomain?
haha your most welcome - glad I can help... I've written a bunch of articles about lift, all of which you can find here: http://blog.getintheloop.eu/tags/lift Cheers, Tim On Jul 26, 1:50 pm, JanWillem Tulp janwillem.t...@gmail.com wrote: Seems like you have an article for all of my questions, Timothy ;) Thanks!! On Jul 26, 2:37 pm, Timothy Perrett timo...@getintheloop.eu wrote: JanWillem, You might find this article I wrote on URL rewriting helpful:http://is.gd/wq4K Cheers, Tim On 26/07/2009 13:10, JanWillem Tulp janwillem.t...@gmail.com wrote: Hi Marius, thanks for your reply, and the better understanding of URL rewrites. For now I'll stick to rewriting the path. Regards, JanWillem On Jul 26, 1:49 pm, marius d. marius.dan...@gmail.com wrote: Well RewriteRequest/Response are currently defined as: case class RewriteRequest(path: ParsePath, requestType: RequestType, httpRequest: HttpServletRequest) case class RewriteResponse(path: ParsePath, params: Map[String, String], stopRewriting: Boolean) so having HttpServketRequest in RewriteRequest, you have access to the hostname and generate different Rewrite response. For example having a host such as marius.basecamphq.com you can easily turn it into basecamphq.com/marius. The only problem here is that you can not pattern match by host name currently. Probably as we have a ParsePath we can have a ParseHost such as marius.basecamphq.com would become marius :: basecamphq :: com :: Nil. Having case class ParseHosth(parts: List[String]) RewriteRequest would become: case class RewriteRequest(host: ParseHost, path: ParsePath, requestType: RequestType, httpRequest: HttpServletRequest) .. now you would be able to pattern match by hostname fragments etc. This is just A WAY to make things easier for your usecase but to make it happen we need committers consensus as this implies API change and inherently breaking changes. Br's, Marius On Jul 26, 2:02 pm, JanWillem Tulp janwillem.t...@gmail.com wrote: Yeah, Marius, you're right. I was just wondering how they've implemented this feature, for example atwww.basecamphq.com. If you signup, you get a URL that starts with your account name, something like: myacount.basecamphq.com. How is that done? Or better, how to do something similar in Lift? Thanks! On Jul 26, 12:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Id say this is a fairly common idiom with multi-tenant systems... Cheers, Tim On Jul 26, 8:30 am, marius d. marius.dan...@gmail.com wrote: What is the usecase of rewriting the hostname? ... Having multiple subdomains mapped to the same IP address and want to discriminate them? Br's, Marius On Jul 26, 1:22 am, JanWillem Tulp janwillem.t...@gmail.com wrote: Hi all, most examples I have seen about Lift URL rewriting are about the path of the URL, the part that comes after the hostname (and port). But is it also possible to do URL rewriting on subdomains? For instance, can I rewrite a URL where the account name is used as a subdomain, something like:http://myaccount.example.comsothatit maps to something similar tohttp://www.example.com?account=myaccount And is URL rewriting for subdomains always possible, or are there some prerequisities from a hosting company or something? Thanks! JanWillem Tulp --~--~-~--~~~---~--~~ 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: Comet DispatchPF - RestfulCometActor?
Hey David, Thanks for the response - got the impression you were swamped :-) Looking forward to your thoughts on this. Cheers, Tim I have some serious thoughts on this. I've been swamped with client-based stupid over-work over the last 10 days. I have one last set of stuff to do tomorrow and I'll be back on list on Tuesday afternoon. --~--~-~--~~~---~--~~ 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: CircleShare Blog where?
Yeah I think its an old link. We [the team] are aware that the wiki sucks and are in the process of moving to a new wiki, with fresh new content. Sorry for the run around. Cheers, Tim On 27/07/2009 12:30, TylerWeir tyler.w...@gmail.com wrote: dpp's blog is here: http://blog.lostlake.org/ On Jul 27, 7:15 am, Jon jon.klei...@usit.uio.no wrote: At the bottom of this page http://wiki.liftweb.net/index.php/ Contribute it says: When you see an article on Lift, help spread the word by submitting it to digg, reddit, or hacknews. If you're looking for articles, a great place is to start is The CircleShare Blog where user:dpp blogs about Lift. When I click at The CircleShare Blog, I get this: Services for this domain have been discontinued Has CircleShare moved, or have they cashed in? /Jon --~--~-~--~~~---~--~~ 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 question abount HelloForm2 of example darwin
Hey koji, Perhaps this article will help: http://is.gd/sfyT Otherwise, can you post the code your using? (perhaps onto gist.github.com) Cheers, Tim On Jul 27, 11:11 am, koji koji@gmail.com wrote: Hi, I'm trying the HelloForm2 of darwin example. The second version of HelloForm2 that who var is RequestVar shows correct on the rendered page, but always showing Empty in my console using param(whofield). Am i do something wrong? --~--~-~--~~~---~--~~ 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: URL Rewrite and complex paths
FYI, I detail lift's rewriting scheme here: http://is.gd/wq4K Cheers, Tim On Jul 27, 9:52 pm, edgarchan edgarchancarri...@gmail.com wrote: Hola. All parameters put it on the map are available in the request, so you can use S.param function to get them. in your example case RewriteRequest(ParsePath(company :: id :: page :: text ::Nil, , true, _), GetRequest, _) = RewriteResponse(company :: Nil, Map (id - id, page - page)) in any of your snippet try this class MySnippet{ def foo:NodeSeq={ val id = S.param(id) val page = S.param(page) // do whatever } } id and page are now a Box .. and take a look on Helpers it has toInt, toLong and others utlity methods to parse a desired type On Jul 27, 1:23 pm, José María josemariar...@gmail.com wrote: Hi. I have the following problem (I'm porting a site from Python): I've an url path that follows the patern /something/int/text or the pattern /something/int/int/text. The type of the diferent parts of the url is important, in other platforms (Python/Ruby) it's possible to use regexp to match the urls... how is this done in Lift? This route /company/1/2 is valid and I need to extracts 2 parameters (id and page). This route /company/1/hi is valid and I need to extract just 1 parameter (id). By now my code is: case RewriteRequest(ParsePath(company :: id :: page :: text :: Nil, , true, _), GetRequest, _) = RewriteResponse(company :: Nil, Map(id - id, page - page)) case RewriteRequest(ParsePath(company :: id :: text :: Nil, , true, _), GetRequest, _) = RewriteResponse(company :: Nil, Map(id - id)) case RewriteRequest(ParsePath(company :: id :: Nil, , true, false), GetRequest, _) = RewriteResponse(company :: Nil, Map(id - id)) Cheers. --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Hi Glen... I actually do a lot of this - we have a product at work and i've just written a bunch of abstractions for work which just require me to do: MyLib.init In the boot file of a new application and then everything wires up - I couldn't think of anything more straightforward? The vast majority of stuff in lift is done with PF's, so you can pretty much just write them in external jars, and import them - my 3rd part stuff usually has a lift-webkit dependency so that I can just do the LiftRules.disptach.append stuff directly in the init method, but its really no biggy and saves boilerplate. So given your example, this scheme should work right? Cheers, Tim On Jul 27, 11:52 pm, glenn gl...@exmbly.com wrote: I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to the application I'm adding the feature to in order to get it to work. For example, suppose I want to add role-based user login to an application that already has a User model just by dropping in a jar file with the new feature. I don't see how to do it without some boostrapping modifications. Has anyone really tried to modularize their Lift development. I'd be very interested in some suggestions. --~--~-~--~~~---~--~~ 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: Hear podcast interview with David Pollack about Lift
Sweet link Cheers, Tim On Jul 27, 7:40 pm, Goldfish gregt...@mindspring.com wrote: Visithttp://pondjumpers.com/2009/07/27/episode-2-interview-about-lift/ to hear a podcast interview with David Pollack about 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: Minimizing Memory Usage
What version of Lift are you using? Are you using scala.actors code within your application at all? Cheers, Tim On Jul 28, 2:47 am, Peter Robinett pe...@bubblefoundry.com wrote: Hi all, I'm running Lift on the smallest Slicehost VPS available (256 mb RAM, plus 512 mb swap) and I've recently run into some memory issues. I'm also running Apache and MySQL on the machine, so Lift and its environment is by no means the only cause, but I'd like to ask you all about how Lift uses memory and whether I can make more efficient use of the little memory I currently have. I was just doing a quick-and-dirty test, so I ran Lift under jetty: nohup mvn jetty:run Before I launched jetty and Lift I was using approximately 150 mb of RAM and little if any swap space. Twelve hours later all physical and swap memory was used up. During those twelve hours I was receiving a POSTed message approximately every second, creating a model and then in its createdRow method sending the new object to a singleton object which sent it on to the appropriate actor (there being around 20 and all of them being launched in Lift's boot method). Very rarely these actors would have a few Comet listeners. Looking at the nohup log I see that lots of sessions started expiring maybe 8 hours from launch and continued in waves until I killed the process. I also see some stack traces about Comet requests, doContinuation, and Bail. Does this suggest that I'm using Actors incorrectly? Do I have too long a session timeout? Or do I just need more memory? Assuming the latter, how would you suggest figuring out a reasonable amount? Thanks for your help, Peter Robinett PS Some additional system details: cat /proc/system Linux version 2.6.24-19-xen (bui...@king) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Sat Jul 12 00:15:59 UTC 2008 java -version java version 1.6.0_0 IcedTea6 1.3.1 (6b12-0ubuntu6.4) Runtime Environment (build 1.6.0_0- b12) OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode) --~--~-~--~~~---~--~~ 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: Help on Build from source
Can you provide some enviroment details What version of maven are you using? What JDK? What maven command did you run? Cheers, Tim On Jul 28, 4:48 am, Nile Black nile.bl...@gmail.com wrote: [INFO] Building Lift Utils [INFO] task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [yuicompressor:compress {execution: default}] [INFO] nb warnings: 0, nb errors: 0 [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [scala:compile {execution: default}] [INFO] Checking for multiple versions of scala [INFO] Compiling 37 source files to D:\user\liftweb\lift-util\target \classes [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \ConcurrentLock.scala:16: error: value util is not a member of package net.java [WARNING] import java.util.concurrent.locks._ [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \CurrencyZone.scala:69: error: value lang is not a member of package net.java [WARNING] } catch { case e: java.lang.NumberFormatException = { [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \CurrencyZone.scala:72: error: value text is not a member of package net.java [WARNING] } catch { case e: java.text.ParseException = { [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \CurrencyZone.scala:103: error: value math is not a member of package net.java [WARNING] make(new BigDecimal(this.amount.bigDecimal.divide (that.amount.bigDecimal, scale, java.math.BigDecimal.ROUND_HALF_UP)) ) [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \IOHelpers.scala:104: error: value io is not a member of package net.java [WARNING] def doClose[T](is: java.io.Closeable*)(f : = T): T = { [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \Mailer.scala:84: error: value util is not a member of package net.java [WARNING] import java.util.Properties [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \PCDataMarkupParser.scala:187: error: value io is not a member of package net.java [WARNING] import java.io.ByteArrayInputStream [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \Props.scala:178: error: value io is not a member of package net.java [WARNING] import java.io.{ByteArrayInputStream} [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \Props.scala:179: error: value util is not a member of package net.java [WARNING] import java.util.InvalidPropertiesFormatException [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \SoftReferenceCache.scala:3: error: value lang is not a member of package net.java [WARNING] import java.lang.ref.{ReferenceQueue,SoftReference}; [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \SoftReferenceCache.scala:4: error: value util is not a member of package net.java [WARNING] import java.util._ [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \SoftReferenceCache.scala:147: error: wrong number of arguments for constructor Object: ()jav a.lang.Object [WARNING] queue: ReferenceQueue[Any]) extends SoftReference[V](v, queue) { [WARNING] ^ [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util \TemplateCache.scala:17: error: value util is not a member of package net.java [WARNING] import java.util.{Locale} [WARNING] ^ [WARNING] 13 errors found [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] command line returned non-zero value:1 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 minute 15 seconds [INFO] Finished at: Tue Jul 28 11:47:44 CST 2009 [INFO] Final Memory: 22M/39M [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
[Lift] Re: Minimizing Memory Usage
Agreed; its pretty light to run all those services. I have a lift based app that's been running for quite some time and its using around 250mb of RAM on average. A raw lift app will probably use 128mb RAM as minimum. Cheers, Tim On 28/07/2009 10:08, marius d. marius.dan...@gmail.com wrote: BTW 256mb seems to me ridiculous small for a server side application. --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I essentially just build a normal jar project with maven, and as you say, if I have JS or whatever that I need to use I just specify that with ResourceServer (in the module JAR init). To date I've not actually needed to pull a template from another JAR, but looking at ResourceServer.findResourceInClasspath I think it could do it... If memory serves DPP checked in a change to make this work about 2 weeks ago... In terms of having a defined loading pattern, its possible, but would need outlining with some very specific details... IMO, adding one line of code to Boot.scala is not a big deal so we would really need a good reason to add a bunch of reflection which can sometime feel like voodoo because its not clear what its loading and why (one of the reasons I went off ruby). Cheers, tim On 28/07/2009 17:00, glenn gl...@exmbly.com wrote: Hi, Tim, So, what you do is put all new LiftRules, Schemifier and ResourceServer stuff in an init function and run it after the Boot.scala defaults. Sounds simple enough. When creating your modules, do you just strip out all the stock webapp files (those that come with the maven lift archetypes), and put all your new resources in a toserve directory, then just jar it up? And what about any new template files? Where do those go in you module jars? You can't put them in the toserver directory. My understanding is that that would install them in the WEB-INF/classes directory of your final war file, when they need to go into the root webapp. I still see loose ends here. Also, what if you didn't have to modify Bool.scala for every module you add. Some hook function in an object that Boot.scala runs each time that would iterate through all your init functions that followed a pre- defined signature, would be a nice feature to add to Lift. Glenn... On Jul 27, 4:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hi Glen... I actually do a lot of this - we have a product at work and i've just written a bunch of abstractions for work which just require me to do: MyLib.init In the boot file of a new application and then everything wires up - I couldn't think of anything more straightforward? The vast majority of stuff in lift is done with PF's, so you can pretty much just write them in external jars, and import them - my 3rd part stuff usually has a lift-webkit dependency so that I can just do the LiftRules.disptach.append stuff directly in the init method, but its really no biggy and saves boilerplate. So given your example, this scheme should work right? Cheers, Tim On Jul 27, 11:52 pm, glenn gl...@exmbly.com wrote: I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to the application I'm adding the feature to in order to get it to work. For example, suppose I want to add role-based user login to an application that already has a User model just by dropping in a jar file with the new feature. I don't see how to do it without some boostrapping modifications. Has anyone really tried to modularize their Lift development. I'd be very interested in some suggestions. --~--~-~--~~~---~--~~ 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: Modularization of Lift code
I've been having a think about this, and are we overlooking something stupid here? Perhaps OSGi could yield a good solution? Thoughts? Cheers, Tim On 28/07/2009 20:04, glenn gl...@exmbly.com wrote: Tim, My last post may be dismissed as adding more complication than simply editing Boot.scala. But keep in mind that a consistent, uniform and robust procedure for modularization across the Lift universe is to be favored over the ad-hoc approach, as exists now. In my view, opening a project and editing source files should always be a last-resort option. Glenn... On Jul 28, 9:36 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I essentially just build a normal jar project with maven, and as you say, if I have JS or whatever that I need to use I just specify that with ResourceServer (in the module JAR init). To date I've not actually needed to pull a template from another JAR, but looking at ResourceServer.findResourceInClasspath I think it could do it... If memory serves DPP checked in a change to make this work about 2 weeks ago... In terms of having a defined loading pattern, its possible, but would need outlining with some very specific details... IMO, adding one line of code to Boot.scala is not a big deal so we would really need a good reason to add a bunch of reflection which can sometime feel like voodoo because its not clear what its loading and why (one of the reasons I went off ruby). Cheers, tim On 28/07/2009 17:00, glenn gl...@exmbly.com wrote: Hi, Tim, So, what you do is put all new LiftRules, Schemifier and ResourceServer stuff in an init function and run it after the Boot.scala defaults. Sounds simple enough. When creating your modules, do you just strip out all the stock webapp files (those that come with the maven lift archetypes), and put all your new resources in a toserve directory, then just jar it up? And what about any new template files? Where do those go in you module jars? You can't put them in the toserver directory. My understanding is that that would install them in the WEB-INF/classes directory of your final war file, when they need to go into the root webapp. I still see loose ends here. Also, what if you didn't have to modify Bool.scala for every module you add. Some hook function in an object that Boot.scala runs each time that would iterate through all your init functions that followed a pre- defined signature, would be a nice feature to add to Lift. Glenn... On Jul 27, 4:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hi Glen... I actually do a lot of this - we have a product at work and i've just written a bunch of abstractions for work which just require me to do: MyLib.init In the boot file of a new application and then everything wires up - I couldn't think of anything more straightforward? The vast majority of stuff in lift is done with PF's, so you can pretty much just write them in external jars, and import them - my 3rd part stuff usually has a lift-webkit dependency so that I can just do the LiftRules.disptach.append stuff directly in the init method, but its really no biggy and saves boilerplate. So given your example, this scheme should work right? Cheers, Tim On Jul 27, 11:52 pm, glenn gl...@exmbly.com wrote: I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to the application I'm adding the feature to in order to get it to work. For example, suppose I want to add role-based user login to an application that already has a User model just by dropping in a jar file with the new feature. I don't see how to do it without some boostrapping modifications. Has anyone really tried to modularize their Lift development. I'd be very interested in some suggestions. --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Im just spitballing - I knew Heiko was working on a bunch of modules and such for Lift so wondered if it was possibly a route forward (im not really up to speed with OSGi) Cheers, Tim On Jul 28, 8:20 pm, glenn gl...@exmbly.com wrote: My understanding about OSGi is that is allows for dynamic classpath dependencies through a jar's META-INF file. But wouldn't that require launching an OSGi implementation with your main Lift application. Glenn... On Jul 28, 12:11 pm, Timothy Perrett timo...@getintheloop.eu wrote: I've been having a think about this, and are we overlooking something stupid here? Perhaps OSGi could yield a good solution? Thoughts? Cheers, Tim On 28/07/2009 20:04, glenn gl...@exmbly.com wrote: Tim, My last post may be dismissed as adding more complication than simply editing Boot.scala. But keep in mind that a consistent, uniform and robust procedure for modularization across the Lift universe is to be favored over the ad-hoc approach, as exists now. In my view, opening a project and editing source files should always be a last-resort option. Glenn... On Jul 28, 9:36 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I essentially just build a normal jar project with maven, and as you say, if I have JS or whatever that I need to use I just specify that with ResourceServer (in the module JAR init). To date I've not actually needed to pull a template from another JAR, but looking at ResourceServer.findResourceInClasspath I think it could do it... If memory serves DPP checked in a change to make this work about 2 weeks ago... In terms of having a defined loading pattern, its possible, but would need outlining with some very specific details... IMO, adding one line of code to Boot.scala is not a big deal so we would really need a good reason to add a bunch of reflection which can sometime feel like voodoo because its not clear what its loading and why (one of the reasons I went off ruby). Cheers, tim On 28/07/2009 17:00, glenn gl...@exmbly.com wrote: Hi, Tim, So, what you do is put all new LiftRules, Schemifier and ResourceServer stuff in an init function and run it after the Boot.scala defaults. Sounds simple enough. When creating your modules, do you just strip out all the stock webapp files (those that come with the maven lift archetypes), and put all your new resources in a toserve directory, then just jar it up? And what about any new template files? Where do those go in you module jars? You can't put them in the toserver directory. My understanding is that that would install them in the WEB-INF/classes directory of your final war file, when they need to go into the root webapp. I still see loose ends here. Also, what if you didn't have to modify Bool.scala for every module you add. Some hook function in an object that Boot.scala runs each time that would iterate through all your init functions that followed a pre- defined signature, would be a nice feature to add to Lift. Glenn... On Jul 27, 4:01 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hi Glen... I actually do a lot of this - we have a product at work and i've just written a bunch of abstractions for work which just require me to do: MyLib.init In the boot file of a new application and then everything wires up - I couldn't think of anything more straightforward? The vast majority of stuff in lift is done with PF's, so you can pretty much just write them in external jars, and import them - my 3rd part stuff usually has a lift-webkit dependency so that I can just do the LiftRules.disptach.append stuff directly in the init method, but its really no biggy and saves boilerplate. So given your example, this scheme should work right? Cheers, Tim On Jul 27, 11:52 pm, glenn gl...@exmbly.com wrote: I'm interested in abstracting out useful features from my Lift applications for ease of reuse, but I haven't found an easy way to do it. I find myself creating a new Lift aplication for each feature, with all the baggage (bootstrapping, etc.), and I then have to do a lot of code modification to the application I'm adding the feature to in order to get it to work. For example, suppose I want to add role-based user login to an application that already has a User model just by dropping in a jar file with the new feature. I don't see how to do it without some boostrapping modifications. Has anyone really tried to modularize their Lift development. I'd be very interested in some suggestions. --~--~-~--~~~---~--~~ You received
[Lift] Re: scala+maven
Hey there, I wrote an article previously about how to use launchers with maven- scala-plugin, find it here: http://is.gd/1RuLQ Does that help? Cheers, Tim On Jul 28, 7:32 pm, ph pkirsa...@gmail.com wrote: Is there a good recourse on how to setup/use scala project with maven? I've installed maven that comes with lift. Project is created with Eclipse maven plugin (q4ehttp://code.google.com/p/q4e/). I build and install scala project to local repository fine. I can also run project using mvn scala:run command from project folder. Now I need to run project from repository and I cannot figure out how to do so. Would I need to use mvn scala:run? This will resolve dependencies and install all required libraries... Scala plugin is not recognized as it declared only in pom. I'm trying to update maven's settings.xml, adding this: profile idenv-dev/id repositories repository idscala-tools.org/id nameScala-tools Maven2 Repository/name urlhttp://scala-tools.org/repo-releases/url /repository /repositories pluginRepositories pluginRepository idorg.scala-tools/id nameScala-tools Maven2 Repository/name urlhttp://scala-tools.org/repo-releases/url /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfileenv-dev/activeProfile /activeProfiles now if I run mvn scala:run -DmainClass=... it gives me error: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-scala-plugin' does not exist or no valid version could be found Maybe there is another way to run project from maven repository? Next step for me will be installing artifact into private remote repository (Artifactory) and run project from that remote repository... Any suggestions? --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Hey Naftoli, Lift has a general aversion to xml configs... Is there another route? Cheers, Tim On 28/07/2009 20:47, Naftoli Gugenheim naftoli...@gmail.com wrote: What I was suggesting is that instead of having to write Lib.init in Boot, Lift should look in Lib.jar for say /boot.xml which would tell Lift to execute Lib.init for you on startup. I think that would accomplish what you want, at the cost of lift searching through the jars. --~--~-~--~~~---~--~~ 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] Moving the wiki...
Hey guys, We had a discussion within the team and taken the decision to move to the github wiki - a fresh start for a fresh new wiki with lots of up- to-date information to replace our legacy wiki / documentation. I've started to move stuff across and supply some brand new documentation, do take a look and let us know what you think - Xavi has very kindly volunteered to be the wiki gardener so kudos for him giving us a kick to actually fix the documentation and make the learning curve for Lift far smoother. http://wiki.github.com/dpp/liftweb 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: Comet DispatchPF - RestfulCometActor?
Hey David, Have you manage to submit any more brain cycles to this? Cheers, Tim I have some serious thoughts on this. I've been swamped with client-based stupid over-work over the last 10 days. I have one last set of stuff to do tomorrow and I'll be back on list on Tuesday afternoon. --~--~-~--~~~---~--~~ 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 configure MySQL In Lift
pravin, Please see: http://wiki.liftweb.net/index.php/HowTo_configure_lift_with_MySQL Cheers, Tim On Jul 29, 9:31 am, pravin pravinka...@gmail.com wrote: Hi, I want to configure MySQL in my lift application. From following sitehttp://scala-tools.org/scaladocs/liftweb/1.0/ i come to know that there is one object called net.liftweb.mapper.MySqlDriver. So how can i use this for MySQL connectivity in my lift application. Thanks -Pravin --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Ryan, I agree with you for the most part - certainly making it explicit would be my preference also. Im not 100% sure that we would need to replicate all the LiftRules functionality as a trait for plugins, as that's just one aspect of how a plugin could change the environment. Your point about making the developer aware what the plugin actually did is a good one though - no one likes black boxes. Perhaps the plugin developer would need to implement some kind of descriptor trait... Meaning that their actual code just uses the normal LiftRules infrastructure, but during the loading process perhaps just Log.debug it to death showing exactly how the environment has been modified or something? Just spitballing... Cheers, Tim On 29/07/2009 12:31, Ryan Donahue donahu...@gmail.com wrote: -1 for adding modules by dropping in a jar Suppose the jar supplies multiple Lift modules and I only want to use one, or suppose I want to use some other class in the jar and don't want to use any of its Lift modules. Adding a module to a Lift app really should be an explicit action by the developer, closer to what Tim does by putting MyModule.init in Boot. However, this does have a couple shortcomings: (1) Does not provide a mechanism for supplying templates in the module and (2) Hides the LiftRules additions from the developer which could result in confusion when troubleshooting (did this module prepend or append to dispatch? which module's dispatchers are executing first? etc.) So what about putting something like this in Boot: LiftRules.modules.append(MyModule) or LiftRules.modules.prepend(new MyModule) where MyModule extends LiftModule and LiftModule is a trait like: trait LiftModule { /* * Specify where to search for snippets, views, etc */ def lookupPackage : String /* * Specify where to search for templates */ def templates : Box[String] // or maybe this has a nice default value /* * Override this to provide LoanWrappers that will be added by S.addAround */ def SWrappers : List[LoanWrapper] = List() /* * Override this to provide dispatchers that will be added by * LiftRules.dispatch.append */ def dispatchers : List[LiftRules.DispatchPF] = List() /* * Override this to provide dispatchers that will be added by * LiftRules.statelessDispatchTable.append */ def statelessDispatchers : List[LiftRules.DispatchPF] = List() // Etc. Basically there would be an overrideable method for each type of // thing you can add to LiftRules with nice defaults where possible. A module // developer only overrides the methods needed for their module. } On Jul 28, 4:18 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: The first suggestion was reflection... I'm not pushing the idea, just throwing in an alternative. But the xml route doesn't have to be xml--it could be a plain text file like /META-INF/.liftboot etc. Or you could search all jars for net.liftweb.BootXX or net.liftweb.XX that implements a trait OnBoot... The point is, there's no shortage of ways (if there's a will :) ) but they all have a certain cost of course. Dynamic loading _means_ searching for Something. That takes time, and it puts some requirement on the library author--but it takes the requirement off the user. - Timothy Perretttimo...@getintheloop.eu wrote: Hey Naftoli, Lift has a general aversion to xml configs... Is there another route? Cheers, Tim On 28/07/2009 20:47, Naftoli Gugenheim naftoli...@gmail.com wrote: What I was suggesting is that instead of having to write Lib.init in Boot, Lift should look in Lib.jar for say /boot.xml which would tell Lift to execute Lib.init for you on startup. I think that would accomplish what you want, at the cost of lift searching through the jars. --~--~-~--~~~---~--~~ 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: Modularization of Lift code
@Heiko: Im not sure we would need to lookup snippets, as the module creator could just register them with LiftRules right? (think DispatchSnippet etc) @all: I think we need to take a step back here a second: Everyone wants a plugin system, but not everyone wants OSGi (specifically the overhead / complexity). So we have two routes as I see it - OSGi, and non-OSGi. We need to define what we want from both and what value it will add for library implementers. Right now we have LiftRules.addToPackages(com.mypackage), we discussed having: LiftRules.addToPackages(com.mypackage) - where the argument is the actual package to add type safety. Why don't we have something like: LiftRules.addToEnviroment(com.mypackage), and the com.mypackage conforms to a known standard / format with some special traits that we call loading methods on. Thoughts? Cheers, Tim On 29/07/2009 13:59, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Sounds good! Any ideas how class lookups (snippets at least) could be delegated to various modules. Currently Lift is using the *global* classpath in a fashion that makes it really hard / impossible for OSGi. Heiko 2009/7/29 Ryan Donahue donahu...@gmail.com More spitballing... Tim, I really don't know which LiftRules stuff would need to be included. For other types of environment changes, the trait could have onLoad and onUnload methods. Heiko, Maybe it is possible to make such a change without breaking API, though I am still fairly new to Lift and not at all familiar enough with LiftRules yet. All the LiftRules public methods could simply manipulate a default internal LiftModule that is always in LiftRules.modules. These are probably big changes, but I see great benefit to well- defined modules. It would facilitate sharing functionality with each other. Could even set up a LiftModule site where you can share and find modules. -Ryan --~--~-~--~~~---~--~~ 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: Modularization of Lift code
Bah, that's very true Naftoli... On 29/07/2009 16:33, Naftoli Gugenheim naftoli...@gmail.com wrote: For that price you could write com.mypackage.Init etc. --~--~-~--~~~---~--~~ 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: Where is source code for demo app?
Find the source here: http://to.ly/nEZ On 29/07/2009 18:05, Goldfish gregt...@mindspring.com wrote: I see nice features demo'd at both http://lift-example.appspot.com/index and http://demo.liftweb.net/index. Now where can I read the source code behind the site, so I can start implementing some of the same things? --~--~-~--~~~---~--~~ 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: Comet DispatchPF - RestfulCometActor?
Hey David, I agree with everything your saying - how do you propose we move forward? My concept for a sample application is an email client written in capp... IMO would be a nice ever based sample. Thoughts? Cheers, Tim Sent from my iPhone On 29 Jul 2009, at 19:57, David Pollak feeder.of.the.be...@gmail.com wrote: Tim, While at this point, all the CometActor stuff is associated with screen real estate in a browser, that's not a requirement for using CometActors. CometActors can communicate via XHTML, JavaScript or both (yes, we can extend this to support JSON as well). The value that the CometActors bring to the table and why they would be especially valuable for the Cappuccino related work is that they can multiplex many different components through 1 HTTP request pipe. So, yes, we need a REST long poll facility for HTTP clients that want to do long polling, but do not want to monitor more than 1 thing. The application for that has been in ESME and in ESME, I just hard-coded a thread stealing wait as a place holder. But for your application, we need to develop example code to demonstrate an HTML-less CometActor that hooks into the Cappuccino stuff. Thanks, David On Mon, Jul 27, 2009 at 1:30 AM, Timothy Perrett timo...@getintheloop.eu wrote: Hey David, Thanks for the response - got the impression you were swamped :-) Looking forward to your thoughts on this. Cheers, Tim I have some serious thoughts on this. I've been swamped with client-based stupid over-work over the last 10 days. I have one last set of stuff to do tomorrow and I'll be back on list on Tuesday afternoon. -- 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: Comet DispatchPF - RestfulCometActor?
I actually already started work on building a standalone chat application this afternoon with regular comet actors and markup... are you suggesting we then try and reskin that we a capp front end and add lift elements where needed? Cheers, Tim Let's work on the multi-user chat project first. It's small, bounded example that we can use to extrapolate the necessary pieces. --~--~-~--~~~---~--~~ 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: Weekly Article Request
Xavi, Have you got links for the new pages... seems like it would make a complete picture then for the archives :-) Cheers, Tim On Jul 30, 4:23 pm, Xavi Ramirez xavi@gmail.com wrote: Awesome! Thanks for the hard work guys. Sorry, I haven't sent another list out. I moved last weekend and I still don't have internet in my house. I'll try to send another list in the next couple of days. -Xavi On Thu, Jul 30, 2009 at 12:51 AM, David Pollakfeeder.of.the.be...@gmail.com wrote: Mine articles are done. On Wed, Jul 22, 2009 at 8:37 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Jul 22, 2009 at 3:22 AM, Xavi Ramirez xavi@gmail.com wrote: Hello, My name is Xavi and I've volunteered as the wiki garden. Every week I'll post a couple of articles topics that we should work on. Here are my picks for this week. Articles we should write: How to parse and create JSON How to use to create a login system using OpenID How to hide and show Admin content HowTo get/store session data dpp owns the above Lift's Rendering Pipeline (here's helpful post http://groups.google.com/group/liftweb/msg/1f156eeec71da397) Articles we should update: http://wiki.liftweb.net/index.php/SetUp_jEdit http://wiki.liftweb.net/index.php/HowTo_start_a_new_liftwebapp dpp owns the above http://wiki.liftweb.net/index.php/How_to_localize Please don't feel limited to the pages I mentioned above. Feel free to edit/create any page you like. If you need an account, just ask and I'll create one for you. Also if there's an article you'd like to see written or improved, please let us know! Thanks, Xavi -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: ajaxCall jlift.js and json2.js
James, Correct, you do indeed need to include this in a page where you want to use json forms etc... Cheers, Tim On Jul 30, 3:53 pm, James Kearney ghostf...@googlemail.com wrote: I wanted to use ajaxCall on a page but it didn't seem to be working due to javascript issues. Eventually I found that I needed to include script type=text/javascript src=classpath/jlift.js / in the page. I just wanted to check that you need to manually include these on every page that uses ajax or should it be included automatically and I have messed up the configuration some how. Thanks, James --~--~-~--~~~---~--~~ 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 Mapper and record framework
Yup - Im using it no problems at all with MS SQL... Cheers, Tim In short - Is lift's mapper framework provides Support for MS SQL ? --~--~-~--~~~---~--~~ 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] Implementing KeyedRecord[T,K]
Guys, What is the intended implementation of KeyedRecord? The work done so far on DBRecord appears not to use it? When / How should one go about implementing a custom record backend? We could really do with some docs on this :-) Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift maven archetypes seem to be broken ... again
Glenn, What command are you using to pull the archetype? Its certainly not an issue in lift as we don't have any 2.7.4 refs in the codebase now. The archetype catalog at http://scala-tools.org/ however still points to 1.0 of Lift, so that's on 2.7.3... Cheers, Tim On 31/07/2009 16:26, glenn gl...@exmbly.com wrote: Seems like every time I create a new LIft project in Eclipse with , drawing on the snapshots in http://scala-tools.org/repo-snapshots, I get errors, telling me I'm missing some Apache commons jar, or worse. Could It be a problem with my system? It's worked in the past without a hitch, but something has changed, and I don't believe I've changed anything local to cause this. I am still investigating, but if anyone has similar experiences, that would help me to debug. Also, shouldn't the POM use Thanks. scala.version2.7.5/scala.version rather than 2.7.4? Glenn... --~--~-~--~~~---~--~~ 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 maven archetypes seem to be broken ... again
This has only been happening recently - its like maven cant find 6.1.6 version of jetty. Change the line in your pom.xml to: [6.1.6,) That will fix the problem for now... I need to change this in the archetypes but it will then mean that Eclipse wont run the tests out of the box (it appears to always try to donwload jetty 7 which doesn't have the right class)... Hmm. Annoying! Cheers, Tim On 31/07/2009 17:36, glenn gl...@exmbly.com wrote: Tim I cleaned out my local repository and even did a reindexing. When I tried to run the basic archetype this time, I got the following error: Couldn't find a version in [6.1.17, 6.1.18, 6.1.19] to match range [6.1.6,6.1.6] org.mortbay.jetty:jetty:jar:null from the specified remote repositories: apache.incubating (http://people.apache.org/repo/m2-incubating- repository), scala-tools.org (http://scala-tools.org/repo-releases), central (http://repo1.maven.org/maven2), scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots) I thought this problem was fixed a while ago. Glenn... On Jul 31, 9:26 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jul 31, 2009 at 8:55 AM, glenn gl...@exmbly.com wrote: Tim, I'm using Eclipse's maven plugin to create a new maven project with the following parameters: groupIdnet.liftweb/groupId artifactIdlift-archetype-basic/artifactId version1.1-SNAPSHOT/version repositoryhttp://scala-tools.org/repo-snapshot/repository The pom this creates in my project uses the 2.7.4 scala version. Could it be that my local .m2 repository is not being updated with a new archetype from repo-snapshot? Yeah... if there's a way to specify the -U flag from Eclipse, that should pull the latest from all the repos. Glenn... On Jul 31, 8:40 am, Timothy Perrett timo...@getintheloop.eu wrote: Glenn, What command are you using to pull the archetype? Its certainly not an issue in lift as we don't have any 2.7.4 refs in the codebase now. The archetype catalog athttp://scala-tools.org/howeverstill points to 1.0 of Lift, so that's on 2.7.3... Cheers, Tim On 31/07/2009 16:26, glenn gl...@exmbly.com wrote: Seems like every time I create a new LIft project in Eclipse with , drawing on the snapshots inhttp://scala-tools.org/repo-snapshots, I get errors, telling me I'm missing some Apache commons jar, or worse. Could It be a problem with my system? It's worked in the past without a hitch, but something has changed, and I don't believe I've changed anything local to cause this. I am still investigating, but if anyone has similar experiences, that would help me to debug. Also, shouldn't the POM use Thanks. scala.version2.7.5/scala.version rather than 2.7.4? Glenn... -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Offline building and documentation
Grant, If your on windows or OSX, just take a look at your $M2 environment variable and remove the javarebel path... We didn¹t know at the time of making that installer that it would expire in one year if we had, we probably would have thought twice about enabling it. That¹s another story... Anyway if you don¹t know how to alter the environment var, just search your system for javarebel.jar and delete it; that will certainly remove the problem. Sorry for the confusion. Regarding building documentation offline, if you have a version of maven earlier than 2.2, you¹ll need to run: mvn install scala:doc However if you have 2.2+ then you can just do: nvn scala:doc Cheers Tim On 31/07/2009 22:06, Kevin Wright kev.lee.wri...@googlemail.com wrote: Maven is a bit tricky when trying to go offline if you have snapshot dependencies. Having said that... I've definitely not been bitten by the issue since upgrading to 2.2 - so you really want to check you're on the latest version, as it looks like they've recently done a l ot of releases in quick succession, On Fri, Jul 31, 2009 at 9:54 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Grant, Are you on Windows or OS X? Thanks, DAvid On Fri, Jul 31, 2009 at 12:40 PM, Grant Wood smackt...@gmail.com wrote: I'm up at a cabin and hoped to be able to work offline, but am finding that Maven secretly assumes that you will always be on the internet and won't co-operate with me even using the -o (offline) option. Answers to some very (I'm hoping) simple questions can go a long way towards helping me out. 1) How can I build the Lift scaladocs locally on my machine? I have downloaded the latest Lift source from GitHub but for the life of me, digging through all the pom.xml files I can't figure out how to get Maven to build me scaladocs for everything. To make everything even more confusing, some of the packages built scaladocs (net.liftweb.util and ne.liftweb.wizard), but the rest don't. 2) In my quest to build the scaladocs, I addd scala, scalac and scaladoc to my $PATH. Suddenly, all I get from Maven is this: steelrain:engine grant$ mvn jetty:run ## ZeroTurnaround JavaRebel 1.2.2 (200812021546) (c) Copyright Webmedia, Ltd, 2007, 2008. All rights reserved. YOUR JAVAREBEL LIMITED LICENSE HAS EXPIRED! This product is licensed to Scala Community until July 1, 2009 for unlimited number of developer seats on site. With the following restrictions: For use with Scala only ## What is this? and why is it preventing me from doing anything at all with Maven on my machine? I removed the scala commands from my $PATH again (I'm on OSX 10.5.7) and it is still doing it. More importantly, how do I make this stop? I have very limited access to the Internet here (although watching the Eagles catch fish near our dock at sunrise this morning was a nice consolation) so I'm sorry if I can't respond right away. Thanks everyone for your patience and help. --~--~-~--~~~---~--~~ 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] Hudson failing again and Lift build failure
Guys, From a fresh github clone im now seeing the following when trying a full build: [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/src/ main/scala/net/liftweb/http/LiftServlet.scala:302: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] tryo{LiftSession.onEndServicing.foreach(_(liftSession, requestState, ret))} [WARNING] ^ [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/src/ main/scala/net/liftweb/http/LiftServlet.scala:303: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] ret [WARNING] ^ [WARNING] two errors found Moreover, when I checked hudson to see if that was building ok, i see the following error message when it tried to build: java.io.IOException: Cannot run program rm (in directory /home/ scalatools/hudson/.hudson/jobs/Lift/builds): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.init(Proc.java:132) at hudson.Proc$LocalProc.init(Proc.java:110) at hudson.Proc$LocalProc.init(Proc.java:102) at hudson.Util.createSymlink(Util.java:847) at hudson.model.Run.run(Run.java:921) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:234) at hudson.model.ResourceController.execute(ResourceController.java: 93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.init(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 8 more Checkout (update) Fetching upstream changes [workspace] $ git fetch FATAL: Failed to fetch hudson.plugins.git.GitException: Failed to fetch at hudson.plugins.git.GitAPI.fetch(GitAPI.java:95) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:103) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:245) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:235) at hudson.FilePath.act(FilePath.java:552) 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: Hudson failing again and Lift build failure
Looks like hudson now recognizes the code failure too: http://hudson.scala-tools.org/job/Lift/1075/ Cheers, Tim On Aug 1, 12:24 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, From a fresh github clone im now seeing the following when trying a full build: [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/src/ main/scala/net/liftweb/http/LiftServlet.scala:302: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] tryo{LiftSession.onEndServicing.foreach(_(liftSession, requestState, ret))} [WARNING] ^ [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/src/ main/scala/net/liftweb/http/LiftServlet.scala:303: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] ret [WARNING] ^ [WARNING] two errors found Moreover, when I checked hudson to see if that was building ok, i see the following error message when it tried to build: java.io.IOException: Cannot run program rm (in directory /home/ scalatools/hudson/.hudson/jobs/Lift/builds): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.init(Proc.java:132) at hudson.Proc$LocalProc.init(Proc.java:110) at hudson.Proc$LocalProc.init(Proc.java:102) at hudson.Util.createSymlink(Util.java:847) at hudson.model.Run.run(Run.java:921) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:234) at hudson.model.ResourceController.execute(ResourceController.java: 93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.init(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 8 more Checkout (update) Fetching upstream changes [workspace] $ git fetch FATAL: Failed to fetch hudson.plugins.git.GitException: Failed to fetch at hudson.plugins.git.GitAPI.fetch(GitAPI.java:95) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:103) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:245) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:235) at hudson.FilePath.act(FilePath.java:552) 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: Hudson failing again and Lift build failure
It's two issues - one is that we have busted code in the lift code base that needs correcting (looking at commits I can't see who changed it)... The other issue is the Hudson box; before the DoS attack we had no problems at all so that to me says it's something different now than compared to before that's causing all these open file handles. Cheers Tim Sent from my iPhone On 1 Aug 2009, at 00:32, Naftoli Gugenheim naftoli...@gmail.com wrote: Is it somehow a result of too many open files? What did Derek do last time there was an error of too many open files? - Timothy Perretttimo...@getintheloop.eu wrote: Looks like hudson now recognizes the code failure too: http://hudson.scala-tools.org/job/Lift/1075/ Cheers, Tim On Aug 1, 12:24 am, Timothy Perrett timo...@getintheloop.eu wrote: Guys, From a fresh github clone im now seeing the following when trying a full build: [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/ src/ main/scala/net/liftweb/http/LiftServlet.scala:302: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] tryo{LiftSession.onEndServicing.foreach(_(liftSession, requestState, ret))} [WARNING] ^ [WARNING] /Users/timperrett/repositories/lift/lift-framework/lift/ src/ main/scala/net/liftweb/http/LiftServlet.scala:303: error: type mismatch; [WARNING] found : java.lang.Object [WARNING] required: net.liftweb.util.Box [net.liftweb.http.LiftResponse] [WARNING] ret [WARNING] ^ [WARNING] two errors found Moreover, when I checked hudson to see if that was building ok, i see the following error message when it tried to build: java.io.IOException: Cannot run program rm (in directory /home/ scalatools/hudson/.hudson/jobs/Lift/builds): java.io.IOException: error=24, Too many open files at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.init(Proc.java:132) at hudson.Proc$LocalProc.init(Proc.java:110) at hudson.Proc$LocalProc.init(Proc.java:102) at hudson.Util.createSymlink(Util.java:847) at hudson.model.Run.run(Run.java:921) at hudson.maven.MavenModuleSetBuild.run (MavenModuleSetBuild.java:234) at hudson.model.ResourceController.execute (ResourceController.java: 93) at hudson.model.Executor.run(Executor.java:119) Caused by: java.io.IOException: java.io.IOException: error=24, Too many open files at java.lang.UNIXProcess.init(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 8 more Checkout (update) Fetching upstream changes [workspace] $ git fetch FATAL: Failed to fetch hudson.plugins.git.GitException: Failed to fetch at hudson.plugins.git.GitAPI.fetch(GitAPI.java:95) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:103) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:245) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:235) at hudson.FilePath.act(FilePath.java:552) Cheers, Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: how 10 seconds works?
I think his point was that rails is doing un-type-safe operations at runtime which is *not* good! On 03/08/2009 08:15, marius d. marius.dan...@gmail.com wrote: The point being ... ? On Jul 31, 7:44 pm, Alex Cruise a...@cluonflux.com wrote: marius d. wrote: Implicit conversions. It's worth noting that Rails accomplishes a similar trick by adding methods to the Integer class at runtime. *shudder* :) -0xe1a --~--~-~--~~~---~--~~ 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 it possible to dynamically add/remove a Menu?
Lance, For what reason do you want to persist the site map to the database? Can the user customize the menu or something? You can do pretty much anything you want my making your own Loc() Cheers, tim On Aug 3, 9:31 am, Lance Zheng lanc...@gmail.com wrote: Hi, I want to add/remove Menu at runtime, for dynamically managing menu list. so I need to persist the menu list(SiteMap?) to the database, and retrieve it from the database when users access the home page. the menu items link to the same page, pass some different params so let that page show different data. so I want to dynamically build the menu of home page. is it possible to do this by using SiteMap and Menu of liftweb? --~--~-~--~~~---~--~~ 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: Access to Apache commons library
Jeff, All you need to do in your application to get access to HttpClient is add this to your pom.xml: dependency groupIdorg.apache.httpcomponents/groupId artifactIdhttpclient/artifactId version4.0-beta2/version /dependency then make the relevant import in your scala file. I would strongly suggest checking out this: http://databinder.net/dispatch/About Its a scala wrapper on http client. Cheers, Tim On Aug 3, 3:11 pm, Jeff McKenna agile.act...@gmail.com wrote: Folks, More newbee questions. I am doing some things that require HttpClient and other things from Apache commons. I have not found the import magic. Are things like HttpClient, SimpleHttpConnectionManager, in the lift framework somewhere. if so, what is the import string or where can I go to look up what is where? if not, where should I put such libraries and then what is the import voodoo. Thanks in advance. Jeff --~--~-~--~~~---~--~~ 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: Post form and return file?
Hey there, Does this help: http://wiki.github.com/dpp/liftweb/about-streamingresponse Cheers, Tim On Aug 4, 5:23 am, DFectuoso santiago1...@gmail.com wrote: I'm working on some landing pages that need to capture some information and after getting that, i will let the user download a file. The problem is that those files need to be protected so, they cannot be downloaded without submitting the form. So hosting them in a url-accesible way seems like a mistake. What i need is to have the files in the server in a folder not accessible from url's. I'm guessing i will need lift to find and stream the files with the correct header. Right now the form is done with JSON forms and the idea would be to continue doing so. Any ideas where i should begin? Things in my mind: -Opening files and streaming them this way would be too much stress for the server? if the files are big? -Is it the best solution? -I can use all the java file libraries, but is there a scala place i should look before jumping on the java way on something -Can i automatically decide the header i should use? Thanks for any ideas and comments! --~--~-~--~~~---~--~~ 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: Using ExtJS with Lift?
Stefan, Chas is doing work with ExtJS, but right now I think because of the GPL licensing we cant integrate it with lift because of some legal stuff. You might be interested to know that there is a current effort to integrate with http://cappuccino.org/ which might be of interest (led my myself and dpp) Cheers, Tim On 04/08/2009 14:44, Stefan Scott stefanscottal...@gmail.com wrote: I understand Lift works well with various Ajax frameworks such as YUI and JQuery, and I really like the rich internet application (RIA) look-and-feel provided by the Ajax framework ExtJS http://extjs.com, which currently is dual-licensed (commercial or GPL). I was wondering if it's possible / advisable to use ExtJS with Lift - and if so, how I would get started using ExtJS with Lift? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Lift installers
Guys, As you may or may not know there have been several issues with the lift installers than configure maven, add javarebal etc etc and this has caused several users problems. So, I *finally* pulled my finger out and fixed the problems and removed the now defunct javarebel - note, if you still would like a copy of javarebel you can obtain a free copy for scala/lift usage directly from them (see their website for more info on that). The installer essentially now installs maven 2.2 and configures a JRE if one is not present (windows only) and nothing more - if you have a working maven install, you have all you need and subsequently *don't* need the installer. Sorry again if you were caused problems during this transition phase - all should be well now. 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: Or QueryParams
You can get items from the query string by doing: S.param(theparam) // Box[T] Cheers, Tim On Aug 5, 4:22 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How can you Or QueryParams (e.g. find text in any field)? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Dynamically setting class attribute on div or span
You might want to checkout the wiki - answers to your questions are on there: http://wiki.github.com/dpp/liftweb Cheers, Tim On Aug 4, 11:22 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: See Exploring Lift 7.6.2. In short, the lift:snippet specifies a method that returns extra attributes. Also, you can bind an element to a function from NodeSeq to NodeSeq which can do whatever processing it wants. - Simonnoise...@gmail.com wrote: Ignore my question please. I just read the part where it says that Lift is not a MVC framework. :-) On Aug 4, 1:53 pm, Simon noise...@gmail.com wrote: This seems to be a pretty easy problem to solve. Maybe I'm just not looking at the right place? I want to dynamically set the class attribute on a div or span in html. But I don't know how I can do it in Lift. If I use something like div class=e:class/, the IDE complains that the tag div not closed and I get the following message from the web app: Message: java.lang.IllegalArgumentException: line 4 does not exist Am I missing something here? Thanks, Simon --~--~-~--~~~---~--~~ 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: *** BREAKING CHANGES COMING UP SOON ***
Portlets have some mixed press, so im not sure how much of a win that will be. The AsyncWeb / Netty stuff does look pretty freaking cool tho. Cheers, Tim On Aug 4, 10:40 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Cool. I'll have to look at portlets and see what they do. Derek On Tue, Aug 4, 2009 at 2:38 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Tue, Aug 4, 2009 at 1:37 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I don't necessarily have a problem with this, but what's the gain? Are there other HTTP frameworks that don't use the javax.servlet API? Just curious. Yes, Jersey directly, portlets, etc. Derek On Tue, Aug 4, 2009 at 1:51 PM, Marius marius.dan...@gmail.com wrote: Folks, I spent a few days decoupling Lift from JEE web container dependencies: javax.servlet._ The code is currently in wip-marius-http- abstractions. I still need to nail down a few things but the idea is: 1. Lift will work with its own traits that abstracts HTTP request, response, HTTP sessions etc. 2. By default there will be the servlet implementation and it'll work as currently. 3. Certain function names will slightly change. 4. If your application explicitly wants to use HttpServletRequest obtained from S some explicit casts would be needed. Generally Lift application should probably not explicitly use javax.servlet._ references. I will post the details of the changes when I'll merge it to master (hopefully this week). Br's, Marius -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: More than one lift:surround in HTML file
Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location: http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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: More than one lift:surround in HTML file
Haha yeah... With-param has had somewhat of a chequered past! Its here to stay for the time being though so don't worry about using it. Cheers, Tim On 06/08/2009 13:48, marius d. marius.dan...@gmail.com wrote: On Aug 6, 3:46 pm, pabraham paulabraham...@googlemail.com wrote: Thanks everyone. I can get things to work now using lift:with- param ... However, I found a post[1] by DPP that says that lift:with-param ... is deprecated. Is this true? We tried to deprecate it a little while ago but AFAIK it's not deprecated anymore. Regards, Paul. [1]http://article.gmane.org/gmane.comp.web.lift/820 On Aug 5, 10:55 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius is right, use with-param... That's the correct solution here. Cheers, Tim On 05/08/2009 22:19, pabraham paulabraham...@googlemail.com wrote: I've added lift:children to my index.html file and now get: XML Parsing Error: junk after document element Location:http://192.168.96.150:8080/ Line Number 113, Column 1:html xmlns:lift=http://liftweb.net/; xmlns=http://www.w3.org/1999/xhtml; ^ Any ideas? In the meantime I can look at lift:with-param. Paul. On 5 Aug, 22:08, Naftoli Gugenheim naftoli...@gmail.com wrote: XML documents need to have a single top-level element. Surround the whole index.html with lift:children. - pabrahampaulabraham...@googlemail.com wrote: Hello there, Is it possible for an HTML file to have more than one lift:surround tag? For example, default.html contains ... lift:bind name=content ... lift:bind name=sidebar ... My index.html contains lift:surround with=default at=content pThis is some content/p /lift:surround lift:surround with=default at=sidebar pThis is some content in the sidebar/p /lift:surround From my fruitless attempts, it seems that the answer to my question is no, but is there any way that I can get this sort of thing to work? Thanks. Paul. --~--~-~--~~~---~--~~ 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: amqp library error
I wrote a fairly extensive blog about how to use the AMQP module - please take a read of it and watch the video: http://is.gd/CkPX - my example is also not a webapp, so its just what you want! The source code is also available which should help you. Cheers, Tim On 06/08/2009 23:55, ph pkirsa...@gmail.com wrote: I'm trying to use lift-amqp library, so I created a maven test project (not Lift one, but just Scala with dependency to lift). I'm using Eclipse with maven-scala-plugin on Windows. I'm using almost exact copy of ExampleStringAMQPSender and ExampleStringAMQPListener. And it behaves very weird: compiling and running from maven (mvn scala:run ...) and jar (java - jar ...) gives runtime error: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.VerifyError: (class: net/liftweb/amqp/ AMQPDispatcher, method: loop signature: ( Lscala/List;)V) Can only throw Throwable objects at s38.plm.amqp.listener.init(connection.scala:35) at s38.plm.amqp.App$.init(App.scala:10) at s38.plm.amqp.App$.clinit(App.scala) at s38.plm.amqp.App.main(App.scala) ... 6 more Running from Eclipse as Scala application works. Currently I'm using lift version 1.1-M4, but same was with lift 1.0. Any thoughts? --~--~-~--~~~---~--~~ 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: SOAP web services?
Myself and Viktor are two committers who do a lot of SOAP work - right now, the best route forward it to use the Java JAX-WS code and call into it with a scala wrapper - this is exactly what I do and it works perfectly. Because there is toll free calling of Java code, there is little point in porting such massive projects to Scala; just make a wrapper that suits your needs. In my environment I have about 40+ endpoints, with hundreds of methods so I just made a scala wrapper that lets me do: DriverManager.whateverdriver.myMethod(params) // Box[T] IMO, that's a damn lot easier than calling a boat load of Java (of course its doing the under the hood, but like I said, its just a wrapper). HTH Cheers, Tim On 06/08/2009 16:26, Jacek Furmankiewicz jace...@gmail.com wrote: I was reading through the Lift book PDF and it mentions only REST- style web services. In our case, we need to look at re-implementing a set of existing SOAP web services (is there anything like 'wsdl2scala' anywhere?). I would appreciate any best practices and suggestions for implementing SOAP web services in the context of a larger Lift app (and Scala in general). --~--~-~--~~~---~--~~ 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: amqp library error
Ahhh, think I know what your problem is - in my example video notice how I start the sending code first... That's because they register the routing with rabbitmq; so perhaps that's the problem here. have you tried doing it with my code exactly as I do in the sample video? I'll check in the morning but there should be any problems with the example. I haven't tested it on windows but there should be no material difference. As far as I remember you should have no problems using 1.0 as I didn't make any changes to lift-amqp recently... If your still having issues, please post your code - amqp is quite complex so it's difficult to understand exactly the error without eyeballing it. Cheers, Tim Sent from my iPhone On 7 Aug 2009, at 15:23, ph pkirsa...@gmail.com wrote: This is, actually, where I started. I took your example and compiled; tried to change dependency on lift from 1.1-snapshot (as it is not in repo) to 1.0 and to 1.1-M4; neither works. When I'm trying to create a new instance of class (listener) in scala console it just hangs, never riches RabbitMQ server. This is on Windows. Have you tried your code on Windows? On Aug 6, 8:10 pm, Timothy Perrett timo...@getintheloop.eu wrote: I wrote a fairly extensive blog about how to use the AMQP module - please take a read of it and watch the video: http://is.gd/CkPX- my example is also not a webapp, so its just what you want! The source code is also available which should help you. Cheers, Tim On 06/08/2009 23:55, ph pkirsa...@gmail.com wrote: I'm trying to use lift-amqp library, so I created a maven test project (not Lift one, but just Scala with dependency to lift). I'm using Eclipse with maven-scala-plugin on Windows. I'm using almost exact copy of ExampleStringAMQPSender and ExampleStringAMQPListener. And it behaves very weird: compiling and running from maven (mvn scala:run ...) and jar (java - jar ...) gives runtime error: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.VerifyError: (class: net/liftweb/amqp/ AMQPDispatcher, method: loop signature: ( Lscala/List;)V) Can only throw Throwable objects at s38.plm.amqp.listener.init(connection.scala:35) at s38.plm.amqp.App$.init(App.scala:10) at s38.plm.amqp.App$.clinit(App.scala) at s38.plm.amqp.App.main(App.scala) ... 6 more Running from Eclipse as Scala application works. Currently I'm using lift version 1.1-M4, but same was with lift 1.0. Any thoughts? --~--~-~--~~~---~--~~ 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: Full stack for building RIAs
Im not really that sure why you think AIR might be ok in a couple of years... its perfectly good right now and will do nothing but improve! The same is true for all UI technologies. Lift puts no prescription on what you must or must not use - you are free to use anything you want, in any way you want. Yes, a lot of people use JQuery, other use the flash / air platform, others use desktop environments like Cocoa... the point is there is no real answer to a full stack RIA because each enterprise project usually requires something different so you cant put a ring around certain techs and say these full fill all enterprise needs for creating RIA's - it just doesn't work like that IMO. Cheers, Tim On Aug 8, 1:37 am, ivo ivo.reduto.fre...@gmail.com wrote: Well, it has to have a good event handling model, it needs all the essential widgets to be able to create enterprise ready applications (sortable and filterable tables, trees, etc.), and it would be nice to include a good data source model for the widgets. What I'm talking about is something in the lines of GWT, or SmartGWT (http://www.smartclient.com/smartgwt/showcase/) or GWT-Ext (http://www.gwt-ext.com/demo/). I think in a couple of years one could also build enterprise UIs with JavaFX or Flex / Adobe Air. I'm not that familiar with JQuery, and maybe it provides an UI framework that can also turn out to be valid option. Right now I don't see it: - It does not have that many widgets - I suppose one still has to worry about the html page flows (as opposed to GWT where one can completely ignore the actual existence of web pages, and one can really feel just like implementing a desktop application) and finally - I don't see an integration with a data source model (but this can be pure ignorance from my part) I know this is not the JQuery list :-) but that David's quotation aroused my curiosity about the Bespin + Lift project. In another occasion, David also said I'm just not a fan of the GWT model. I wander what he meant... Anyway this is just a starting point for me, I don't have any fixed ideas. Please comment :-) On Aug 7, 9:27 pm, marius d. marius.dan...@gmail.com wrote: What do you mean by UI framework here? Lift is pretty neatly integrated with JQuery, or you can use YUI or virtually any UI framework. So what are your expectations from a UI framework? Br's, Marius On Aug 7, 10:55 pm, ivo ivo.reduto.fre...@gmail.com wrote: Hi all, I want to start learning about promising technologies for building full stack RIAs. It doesn't need to be something very powerful today, but something that I can seriously consider for building commercial applications in 1 or 2 years from now. Let me divide what I mean by full stack into 3 parts: (1) Data backend, (2) Web framework and (3) UI framework. I was wondering if Lift + Goat Rodeo could be it, but I still think that the UI framework is still missing. Quoting a post from David that I found around the web: The Bespin folks are working on a GUI builder called Thunderclap. Dion and I want to make it so that building GUI apps with Bespin and Lift is as simple as wiring up applications in OS X's Interface Builder. Do you have any other news about this project (or know where to look at)? Please share your thoughts... Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Full stack for building RIAs
ivo, The Bespin story (likewise for http://cappuccino.org/ ) is one of integration with Lifts comet support etc... both those technologies are all based on Javascript runtime (as is GWT) so you need to think in more abstract terms; when we talk about integration with a client side technology, we [the team] usually refer to integrating Lift's main USPs with said technology. For example, making sure the comet support works OOTB etc. Bespin (and to that end, Thunderhead) are amazing toolkits for client side dev, and any integration done with Lift will purely be to ensure that our USPs work in a very seamless way - its not to say that if there isnt integration with a technology you want you cant use lift, its just that some we'll supply and some we wont. Does that help? Cheers, Tim On Aug 8, 2:00 pm, ivo ivo.reduto.fre...@gmail.com wrote: So without surprise I realize that my doubts about JQuery come of my lack of experience with it, but in contrast my experience with GWT is that one really forgets about the generated javascript code. It is small, performant and it just works! If one adds SmartGWT to the picture, one gets tons of useful widgets, and with GAE one gets a persistent backend and an object model that can be shared between server and client. All this is what I was calling the full-stack. Nevertheless there are disadvantages, one of them being the incredible amount of code one has to write specially for the client (because in the server one can use Python or Scala as alternatives to Java.) Another important disadvantage is vendor lock-in. But again, my curiosity was triggered by the Bespin + Lift project. What is that all about really? How can we compare it to JQuery + Lift, or GWT, or other? --~--~-~--~~~---~--~~ 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: amqp library error
I just fixed the rabbitmq sample in my repo to 1.1-m4, so do a pull and things should start to work for you http://github.com/timperrett/rabbitmq-scala-tutorial/tree/master Cheers, Tim On Aug 7, 4:39 pm, ph pkirsa...@gmail.com wrote: not in release repository (http://scala-tools.org/repo-releases/net/ liftweb/lift/) which I'm using I wouldn't use snapshot repository... On Aug 7, 11:34 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Aug 7, 2009 at 7:23 AM, ph pkirsa...@gmail.com wrote: This is, actually, where I started. I took your example and compiled; tried to change dependency on lift from 1.1-snapshot (as it is not in repo) Which Repo is 1.1-SNAPSHOT not in? to 1.0 and to 1.1-M4; neither works. When I'm trying to create a new instance of class (listener) in scala console it just hangs, never riches RabbitMQ server. This is on Windows. Have you tried your code on Windows? On Aug 6, 8:10 pm, Timothy Perrett timo...@getintheloop.eu wrote: I wrote a fairly extensive blog about how to use the AMQP module - please take a read of it and watch the video: http://is.gd/CkPX-myexample is also not a webapp, so its just what you want! The source code is also available which should help you. Cheers, Tim On 06/08/2009 23:55, ph pkirsa...@gmail.com wrote: I'm trying to use lift-amqp library, so I created a maven test project (not Lift one, but just Scala with dependency to lift). I'm using Eclipse with maven-scala-plugin on Windows. I'm using almost exact copy of ExampleStringAMQPSender and ExampleStringAMQPListener. And it behaves very weird: compiling and running from maven (mvn scala:run ...) and jar (java - jar ...) gives runtime error: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.VerifyError: (class: net/liftweb/amqp/ AMQPDispatcher, method: loop signature: ( Lscala/List;)V) Can only throw Throwable objects at s38.plm.amqp.listener.init(connection.scala:35) at s38.plm.amqp.App$.init(App.scala:10) at s38.plm.amqp.App$.clinit(App.scala) at s38.plm.amqp.App.main(App.scala) ... 6 more Running from Eclipse as Scala application works. Currently I'm using lift version 1.1-M4, but same was with lift 1.0. Any thoughts? -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Full stack for building RIAs
Hey Stefan, sorry, yes I do indeed mean Unique Selling Point. Cheers, Tim On Aug 8, 4:16 pm, Stefan Scott stefanscottal...@gmail.com wrote: I usually can figure out new acronyms ... but USP had me stumped. Even after googling, nothing applicable came up. I was unsure if it refers to a technology ... or maybe it's just shorthand for a common English phrase. Finally I thought unique sales point might be a common English phrase ... and then I found unique selling proposition online. So USP = unique selling proposition? On Aug 8, 10:49 am, Timothy Perrett timo...@getintheloop.eu wrote: ivo, The Bespin story (likewise forhttp://cappuccino.org/) is one of integration with Lifts comet support etc... both those technologies are all based on Javascript runtime (as is GWT) so you need to think in more abstract terms; when we talk about integration with a client side technology, we [the team] usually refer to integrating Lift's main USPs with said technology. For example, making sure the comet support works OOTB etc. Bespin (and to that end, Thunderhead) are amazing toolkits for client side dev, and any integration done with Lift will purely be to ensure that our USPs work in a very seamless way - its not to say that if there isnt integration with a technology you want you cant use lift, its just that some we'll supply and some we wont. Does that help? Cheers, Tim On Aug 8, 2:00 pm, ivo ivo.reduto.fre...@gmail.com wrote: So without surprise I realize that my doubts about JQuery come of my lack of experience with it, but in contrast my experience with GWT is that one really forgets about the generated javascript code. It is small, performant and it just works! If one adds SmartGWT to the picture, one gets tons of useful widgets, and with GAE one gets a persistent backend and an object model that can be shared between server and client. All this is what I was calling the full-stack. Nevertheless there are disadvantages, one of them being the incredible amount of code one has to write specially for the client (because in the server one can use Python or Scala as alternatives to Java.) Another important disadvantage is vendor lock-in. But again, my curiosity was triggered by the Bespin + Lift project. What is that all about really? How can we compare it to JQuery + Lift, or GWT, or other? --~--~-~--~~~---~--~~ 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: amqp library error
Ph, Yes, if you have Java based classes / annotations or whatever then you'll need that config yes. The lift-amqp module however does not need that. Cheers, Tim On Aug 8, 9:29 pm, ph pkirsa...@gmail.com wrote: Thanks I will try Monday. I, actually, fixed the project and it compiles and runs... I don't know what exactly fixed the project, as I've done bunch of Voodoo stuff with it, but I suspect that was this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target ... My project also Includes Protocol Buffers generated Java classes and those needed this for sure... On Aug 8, 10:02 am, Timothy Perrett timo...@getintheloop.eu wrote: I just fixed the rabbitmq sample in my repo to 1.1-m4, so do a pull and things should start to work for you http://github.com/timperrett/rabbitmq-scala-tutorial/tree/master Cheers, Tim On Aug 7, 4:39 pm, ph pkirsa...@gmail.com wrote: not in release repository (http://scala-tools.org/repo-releases/net/ liftweb/lift/) which I'm using I wouldn't use snapshot repository... On Aug 7, 11:34 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Aug 7, 2009 at 7:23 AM, ph pkirsa...@gmail.com wrote: This is, actually, where I started. I took your example and compiled; tried to change dependency on lift from 1.1-snapshot (as it is not in repo) Which Repo is 1.1-SNAPSHOT not in? to 1.0 and to 1.1-M4; neither works. When I'm trying to create a new instance of class (listener) in scala console it just hangs, never riches RabbitMQ server. This is on Windows. Have you tried your code on Windows? On Aug 6, 8:10 pm, Timothy Perrett timo...@getintheloop.eu wrote: I wrote a fairly extensive blog about how to use the AMQP module - please take a read of it and watch the video: http://is.gd/CkPX-myexampleis also not a webapp, so its just what you want! The source code is also available which should help you. Cheers, Tim On 06/08/2009 23:55, ph pkirsa...@gmail.com wrote: I'm trying to use lift-amqp library, so I created a maven test project (not Lift one, but just Scala with dependency to lift). I'm using Eclipse with maven-scala-plugin on Windows. I'm using almost exact copy of ExampleStringAMQPSender and ExampleStringAMQPListener. And it behaves very weird: compiling and running from maven (mvn scala:run ...) and jar (java - jar ...) gives runtime error: Exception in thread main java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.VerifyError: (class: net/liftweb/amqp/ AMQPDispatcher, method: loop signature: ( Lscala/List;)V) Can only throw Throwable objects at s38.plm.amqp.listener.init(connection.scala:35) at s38.plm.amqp.App$.init(App.scala:10) at s38.plm.amqp.App$.clinit(App.scala) at s38.plm.amqp.App.main(App.scala) ... 6 more Running from Eclipse as Scala application works. Currently I'm using lift version 1.1-M4, but same was with lift 1.0. Any thoughts? -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Scala XML Bug?
Try loading the XML with net.liftweb.util.PCDataXmlParser ? Cheers, Tim On Aug 9, 6:58 pm, Ross Mellgren dri...@gmail.com wrote: Loading this XML using XML.loadString works fine for me, so I suspect there is something else going on here (e.g. formatting of the string, encoding you use, code that loads the XML, etc.). Can you post a small code snippet reproducing the issue? -Ross On Aug 9, 2009, at 1:54 PM, fbettag wrote: The Problem seems to be the newlines. when i do .replace(\n, ) before XML.loadString() it works.. strange, any explaination? On Aug 9, 6:34 pm, fbettag fr...@bett.ag wrote: Hi there, i know this is not the right place, but i wanted your opinions first. I'm trying to run XML.loadString onto this: body div id=wrapper div id=header lift:Content.headline / lift:Content.subheadline / lift:Content.menu / /div /div div id=content show:Content / /div div id=footer lift:Content.footer / /div /body The Problem appears to be with div#header, as soon as i remove it - it works, as soon as i put in (EVEN AN EMPTY) div#header i get this error: org.xml.sax.SAXParseException: The element type div must be terminated by the matching end-tag /div. at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1269) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at scala.xml.parsing.FactoryAdapter.loadXML (FactoryAdapter.scala:292) at scala.xml.parsing.NoBindingFactoryAdapter.loadXML (NoBindingFactoryAdapter.scala:60) at scala.xml.XML$.load(XML.scala:68) at scala.xml.XML$.loadString(XML.scala:84) at ag.bett.lift.cms.comet.Others$.show(Others.scala:97) Any ideas? --~--~-~--~~~---~--~~ 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: SOAP web services?
Hey Greg, Im not sure about WSDL2.0, but my understanding was that WADL ( https://wadl.dev.java.net/ ) was making the most ground in the REST service description arena. Cheers, Tim On Aug 10, 10:58 pm, Meredith Gregory lgreg.mered...@gmail.com wrote: Lifted RESTafarians, Has anyone tried the Apache Axis 2 WSDL 2.0 support? i'm looking at this pagehttp://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-pl...and it claims they have a maven plugin to generate the stubs for a WSDL 2.0 REST binding. i'm going to play around with it to wrap BNF Converter in a RESTful service; but, i was wondering if anyone else had experience with it. Best wishes, --greg On Fri, Aug 7, 2009 at 12:31 AM, Viktor Klang viktor.kl...@gmail.comwrote: Hello Jacek, actually, if I were you I'd consider implementing your webservices as REST services and then just have your SOAP stubs call your rest services. (If you're not using anything voodooesque) Then you have the benefit of using the existing plumbing as much as possible, while still maintaining your SOAP interface as well as a potential migration path to something non-WSDL. (I am severely biased by having to work with SOAP, which has scarred me for life) On Thu, Aug 6, 2009 at 5:26 PM, Jacek Furmankiewicz jace...@gmail.comwrote: I was reading through the Lift book PDF and it mentions only REST- style web services. In our case, we need to look at re-implementing a set of existing SOAP web services (is there anything like 'wsdl2scala' anywhere?). I would appreciate any best practices and suggestions for implementing SOAP web services in the context of a larger Lift app (and Scala in general). -- Viktor Klang Rogue Scala-head Blog: klangism.blogspot.com Twttr: viktorklang -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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: bind with outer element?
Jon, To read attributes, you do the following: S.attr(shorten) // = Box[String] Cheers, Tim On Aug 10, 9:44 pm, jon jonhoff...@gmail.com wrote: Hi, I have a template with the following lift:Snippit t:name shorten=true / t:foo form=POST form:name/ ... /t:foo /lift:Snippet And a snippet like: def doSnippet(x:NodeSeq):NodeSeq = { bind(t, x, name- (doName(_)), foo - (doForm(_)) ) } In the code above only the contents of the bound tags are available for doName and doForm, if I want to be able to read the attribute shorten in doName and have foo render with an enclosing form tag, how do I create the bind params? I am doing an expensive batch operation upfront, so I want everything to be in the same snippet. Thanks, Jon --~--~-~--~~~---~--~~ 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: SOAP web services?
Id say you are correct Marius - you simply don't see it; I think that's partly because of marketing (wind back to 2004... SOA == SOAP, and SOAP == XML + HTTP), and partly because of companies such as Microsoft implementing SOAP in their tooling such as they did (and still do). To that end, perhaps WSDL/SOAP has too much of a stigma attached to it now to become successful in the wider service description arena? I also think that same stigma gave rise to efforts like WADL... But as usual, we digress! Cheers, Tim On 11/08/2009 17:27, marius d. marius.dan...@gmail.com wrote: Very true. But then again in reality how often are we seeing WSDL/SOAP bound to something else then HTTP? ... in some respects this seems a false selling point of SOAP. Assuming an enterprise application where let's say we can escape HTTP realm, probably RMI/IIOP, JINI, JXTA etc. even proprietary on the wire representation etc.becomes valid choices. --~--~-~--~~~---~--~~ 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: SOAP web services?
But I'm just a weird guy with weird opinions... We hadn't noticed Viktor ;-) 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: Cant generating liftweb document from source
Can you try: mvn install scala:doc Cheers, Tim On Aug 11, 8:49 pm, Lance Zheng lanc...@gmail.com wrote: I try to generate doc but got an error.http://wiki.liftweb.net/index.php/Generating_Lift_scaladocs_locally my OS is vista and maven's version is 2.2.0 D:\scalasrc\liftwebmvn -v Apache Maven 2.2.0 (r788681; 2009-06-26 21:04:01+0800) Java version: 1.6.0_13 Java home: C:\Program Files\Java\jdk1.6.0_13\jre Default locale: zh_CN, platform encoding: GBK OS name: windows vista version: 6.0 arch: x86 Family: windows D:\scalasrc\liftwebmvn scala:doc .. [WARNING] [Fatal Error] :1:38: Open quote is expected for attribute {1} associated with an elemen t type href. [WARNING] Exception in thread main org.xml.sax.SAXParseException: Open quote is expected for attri bute {1} associated with an element type href. [WARNING] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXPar ser.java:1231) [WARNING] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXPars erImpl.java:522) [WARNING] at javax.xml.parsers.SAXParser.parse(SAXParser.java: 395) [WARNING] at scala.xml.parsing.FactoryAdapter.loadXML (FactoryAdapter.scala:292) [WARNING] at scala.xml.parsing.NoBindingFactoryAdapter.loadXML (NoBindingFactoryAdapter.scala:6 0) [WARNING] at scala.xml.XML$.load(XML.scala:68) [WARNING] at org.scala_tools.vscaladoc.DocUtil$.load (DocUtil.scala:28) [WARNING] at org.scala_tools.vscaladoc.Services$cfg$.setFrom (Services.scala:38) [WARNING] at org.scala_tools.vscaladoc.Main$.process(Main.scala: 81) [WARNING] at org.scala_tools.vscaladoc.Main$.main(Main.scala: 107) [WARNING] at org.scala_tools.vscaladoc.Main.main(Main.scala) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] wrap: org.apache.maven.reporting.MavenReportException: wrap: command line returned non-zero v alue: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: how to wtite scala code in dynamic table
Pravin, Checkout my example here: http://is.gd/sfyT - the key point your looking for is chooseTemplate; you can have two NodeSeq, one with a Nothing to display type message if there is no content, and one with the content if it exists. Does that help? Cheers, Tim On Aug 12, 7:54 am, pravin pravinka...@gmail.com wrote: Hi , i going to populate dynamic table contains. but i want to do some validation before dispaly how can i do this ... e.g .. i have one snippet with one method abc(){ ... td width=45% valign=topp class=bedSleepHeader CellNo : { emp.CellNo} ,Name :{emp.Name} ,/p br/br /td /// suppose if there no cell no i dont want to display this record how can i add this code in this td } Thanks in advance -Pravin --~--~-~--~~~---~--~~ 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: TableEditor article
I just fixed the article markup - thanks for writing it up. Cheers, Tim On Aug 12, 10:51 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Apparently some less than/greater than signs aren't being converted into their entity format. On Wed, Aug 12, 2009 at 5:49 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: http://wiki.github.com/dpp/liftweb/example-use-tableeditor-to-manage-... On Wed, Aug 12, 2009 at 5:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I just wrote a brief wiki article on GitHub about using TableEditor, but not being familiar with the formatting syntax, the code snippets are truncated. Can anyone take a look at it and fix it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: TableEditor article
Just tweaked the spacing mainly - there appear to be some slight oddities with the textile parser. It also doesnt like code with tabs, it prefers spaces. Cheers, Tim On Aug 12, 11:35 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Thanks. What did you have to do to fix the markup? On Wed, Aug 12, 2009 at 6:22 PM, Timothy Perrett timo...@getintheloop.euwrote: I just fixed the article markup - thanks for writing it up. Cheers, Tim On Aug 12, 10:51 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Apparently some less than/greater than signs aren't being converted into their entity format. On Wed, Aug 12, 2009 at 5:49 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: http://wiki.github.com/dpp/liftweb/example-use-tableeditor-to-manage-. .. On Wed, Aug 12, 2009 at 5:48 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I just wrote a brief wiki article on GitHub about using TableEditor, but not being familiar with the formatting syntax, the code snippets are truncated. Can anyone take a look at it and fix it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: any idea when we can cut a 1.1-M5 release?
To what end? Not a lot of code has gone in since the 1.1-m4 Cheers, Tim On 13/08/2009 10:59, James Strachan james.strac...@gmail.com wrote: Now that the APIs have changed to abstract the servlet stuff, I'd really like a 1.1-M5 release. Anyone any objections to cutting one soon? --~--~-~--~~~---~--~~ 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: ws-generated code in lift
I agree with Viktor - in a similar vein, this is exactly what I implemented with Akka; the servlet runs in conjunction with lifts filter and lift just hands off stuff it doesnt know what to do with. So if you want to use AxisServlet or whatever its real easy. From my point of view, you'd need a good reason to bring the SOAP stuff into lift; right now i havent found one... I write a lot of lift apps that consume SOAP services, but as yet have no good reason to write a SOAP serving app with lift - If i were to do one, id do exactly as with the JAX-RS stuff in Akka and passNotFoundToChain. Cheers, Tim On Aug 14, 10:24 pm, Viktor Klang viktor.kl...@gmail.com wrote: Gregory, Depending on what WS-* stuff you're using, you _should_ be able to wire the AxisServlet in web.xml under /ws/* or something like that, and then have lift passNotFoundToChain=true But I guess it boils down to what liftiness you're planning to do. Can you elaborate a bit on what you're aiming for? On Fri, Aug 14, 2009 at 9:00 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Tim, Viktor, Do you wire your SOAP services into lift or do you keep that independent? i was just talking to DPP and according to him it appears you can successfully wire WS-generated code anywhere along in the http-request processing pipeline. He pointed out a gotcha that i think can be circumvented with HttpServletResponse trampoline. Both lift and the WS-generated code are likely to want to be in the driver's seat regarding who's returning the bytes. But, i think you can just fool the WS-generated code into thinking it's got an HttpServletResponse that is really a widget that will just write into the one lift returns. In this way you can write a 1-size-fits-all return adapter. Is this what you guys are doing, or am i making this too complicated? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- Viktor Klang Rogue Scala-head Blog: klangism.blogspot.com Twttr: viktorklang --~--~-~--~~~---~--~~ 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: ws-generated code in lift
Sounds like a classic situation what is technically possible is one thing but what you should do to preserve your sanity is most probably another ;-) Good luck! Cheers, Tim On Aug 15, 4:29 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Tim, Viktor, Thanks for the insights and sharing of experience. i'm in a situation where i'm working with legacy stuff. i was just wondering how deeply into lift i could push the WSDL-based Java handlers. Best wishes, --greg On Fri, Aug 14, 2009 at 2:54 PM, Timothy Perrett timo...@getintheloop.euwrote: I agree with Viktor - in a similar vein, this is exactly what I implemented with Akka; the servlet runs in conjunction with lifts filter and lift just hands off stuff it doesnt know what to do with. So if you want to use AxisServlet or whatever its real easy. From my point of view, you'd need a good reason to bring the SOAP stuff into lift; right now i havent found one... I write a lot of lift apps that consume SOAP services, but as yet have no good reason to write a SOAP serving app with lift - If i were to do one, id do exactly as with the JAX-RS stuff in Akka and passNotFoundToChain. Cheers, Tim On Aug 14, 10:24 pm, Viktor Klang viktor.kl...@gmail.com wrote: Gregory, Depending on what WS-* stuff you're using, you _should_ be able to wire the AxisServlet in web.xml under /ws/* or something like that, and then have lift passNotFoundToChain=true But I guess it boils down to what liftiness you're planning to do. Can you elaborate a bit on what you're aiming for? On Fri, Aug 14, 2009 at 9:00 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Tim, Viktor, Do you wire your SOAP services into lift or do you keep that independent? i was just talking to DPP and according to him it appears you can successfully wire WS-generated code anywhere along in the http-request processing pipeline. He pointed out a gotcha that i think can be circumvented with HttpServletResponse trampoline. Both lift and the WS-generated code are likely to want to be in the driver's seat regarding who's returning the bytes. But, i think you can just fool the WS-generated code into thinking it's got an HttpServletResponse that is really a widget that will just write into the one lift returns. In this way you can write a 1-size-fits-all return adapter. Is this what you guys are doing, or am i making this too complicated? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- Viktor Klang Rogue Scala-head Blog: klangism.blogspot.com Twttr: viktorklang -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com --~--~-~--~~~---~--~~ 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: ws-generated code in lift
Id be interested to hear those stories... all the ones i've heard so far that involve anything to do with SOAP have usually been tales of woe ;-) Cheers, Tim On Aug 15, 6:47 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think there will be an important Goat Rodeo/Lift/SOAP story that I'll be able to tell in a week or so... integrating WS into Lift (rather than running on the side) will, I think, have benefits. On Sat, Aug 15, 2009 at 9:45 AM, Timothy Perrett timo...@getintheloop.euwrote: Sounds like a classic situation what is technically possible is one thing but what you should do to preserve your sanity is most probably another ;-) Good luck! Cheers, Tim On Aug 15, 4:29 am, Meredith Gregory lgreg.mered...@gmail.com wrote: Tim, Viktor, Thanks for the insights and sharing of experience. i'm in a situation where i'm working with legacy stuff. i was just wondering how deeply into lift i could push the WSDL-based Java handlers. Best wishes, --greg On Fri, Aug 14, 2009 at 2:54 PM, Timothy Perrett timo...@getintheloop.eu wrote: I agree with Viktor - in a similar vein, this is exactly what I implemented with Akka; the servlet runs in conjunction with lifts filter and lift just hands off stuff it doesnt know what to do with. So if you want to use AxisServlet or whatever its real easy. From my point of view, you'd need a good reason to bring the SOAP stuff into lift; right now i havent found one... I write a lot of lift apps that consume SOAP services, but as yet have no good reason to write a SOAP serving app with lift - If i were to do one, id do exactly as with the JAX-RS stuff in Akka and passNotFoundToChain. Cheers, Tim On Aug 14, 10:24 pm, Viktor Klang viktor.kl...@gmail.com wrote: Gregory, Depending on what WS-* stuff you're using, you _should_ be able to wire the AxisServlet in web.xml under /ws/* or something like that, and then have lift passNotFoundToChain=true But I guess it boils down to what liftiness you're planning to do. Can you elaborate a bit on what you're aiming for? On Fri, Aug 14, 2009 at 9:00 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Tim, Viktor, Do you wire your SOAP services into lift or do you keep that independent? i was just talking to DPP and according to him it appears you can successfully wire WS-generated code anywhere along in the http-request processing pipeline. He pointed out a gotcha that i think can be circumvented with HttpServletResponse trampoline. Both lift and the WS-generated code are likely to want to be in the driver's seat regarding who's returning the bytes. But, i think you can just fool the WS-generated code into thinking it's got an HttpServletResponse that is really a widget that will just write into the one lift returns. In this way you can write a 1-size-fits-all return adapter. Is this what you guys are doing, or am i making this too complicated? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- Viktor Klang Rogue Scala-head Blog: klangism.blogspot.com Twttr: viktorklang -- L.G. Meredith Managing Partner Biosimilarity LLC 1219 NW 83rd St Seattle, WA 98117 +1 206.650.3740 http://biosimilarity.blogspot.com -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: CMS for Lift?
Short answer: no. Long answer: There are a couple of efforts in progress, but this are early, early stages (not even runnable code). Cheers, Tim On Aug 16, 7:08 am, philip philip14...@gmail.com wrote: Hi, Has anyone made a CMS for Liftweb? or I should say, in liftweb. Thanks, Philip --~--~-~--~~~---~--~~ 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: CMS for Lift?
I think Akka / GoatRodeo will make building such developments with Lift even more compelling thanks to persistence systems like Cassandra. @Glenn - is your project public? Cheers, Tim On 16/08/2009 19:13, glenn gl...@exmbly.com wrote: Philip, I'm working on a cms system in Lift. Right now, it allows for content creation using wymeditor, which can be tagged and displayed as an atom feed. This code is runnable, simple as it is. I'm working on adding dynamic site map creation as well. Is this kind of what you have in mind by a CMS system. I'm very interested in workiing with others on a CMS that can compete with any of the PHP varieties out there, such as Drupal and Wordpress. Most of these simply use plugins from one ore more javascript libraries out there for site creation, and Lift certainly can do javascript as well as, if not better than, these systems. Glenn... On Aug 15, 11:08 pm, philip philip14...@gmail.com wrote: Hi, Has anyone made a CMS for Liftweb? or I should say, in liftweb. Thanks, Philip --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: How do I add jar files to my app?
You can specify this in maven, but make sure you set the scope: scopeprovided/scope Cheers, Tim On 17/08/2009 15:04, marius d. marius.dan...@gmail.com wrote: The JDBC driver should not be in the applications class-path (WEB-INF/ lib) but in container's classpath. Say jetty's lib folder. Br's, Marius On Aug 17, 2:24 pm, Goldfish gregt...@mindspring.com wrote: I am trying to point my app at an Oracle database, but am getting ClassNotFound exceptions: [INFO] Scanning for projects... [INFO] [INFO] Building cims2 [INFO] task-segment: [jetty:run] [INFO] [INFO] Preparing jetty:run [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [yuicompressor:compress {execution: default}] [INFO] nb warnings: 0, nb errors: 0 [INFO] [compiler:compile {execution: default-compile}] [INFO] Nothing to compile - all classes are up to date [INFO] [scala:compile {execution: default}] [INFO] Checking for multiple versions of scala [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Nothing to compile - all classes are up to date [INFO] [scala:testCompile {execution: default}] [INFO] Checking for multiple versions of scala [INFO] Nothing to compile - all classes are up to date [INFO] [jetty:run {execution: default-cli}] [INFO] Configuring Jetty for project: cims2 [INFO] Webapp source directory = H:\lift\cims2\src\main\webapp [INFO] Reload Mechanic: automatic [INFO] Classes = H:\lift\cims2\target\classes 2009-08-17 07:20:58.078::INFO: Logging to STDERR via org.mortbay.log.StdErrLog [INFO] Context path = / [INFO] Tmp directory = determined at runtime [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = H:\lift\cims2\src\main\webapp\WEB-INF\web.xml [INFO] Webapp directory = H:\lift\cims2\src\main\webapp [INFO] Starting jetty 6.1.19 ... 2009-08-17 07:20:58.296::INFO: jetty-6.1.19 2009-08-17 07:20:59.000::INFO: No Transaction manager found - if your webapp re quires one, please configure one. java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) I put ojdbc.jar in both src/webapp and src/webapp/WEB-INF and it makes no difference. I dug into the code so that I could figure out how to use props files instead of editing Boot.scala too much, and managed to define src/main/resources/default.props, which I can tell is read, because it is obviously trying to load in oracle.jdbc.driver.OracleDriver, which came from my props file. My Boot.scala file looks like: package bootstrap.liftweb import _root_.net.liftweb.util._ import _root_.net.liftweb.http._ import _root_.net.liftweb.sitemap._ import _root_.net.liftweb.sitemap.Loc._ import Helpers._ import _root_.net.liftweb.mapper.{DB, ConnectionManager, Schemifier, DefaultConnectionIdentifier, ConnectionIdentifier} import _root_.java.sql.{Connection, DriverManager} import _root_.com.harris.cims.model._ import _root_.javax.servlet.http.{HttpServletRequest} /** * A class that's instantiated early and run. It allows the application * to modify lift's environment */ class Boot { def boot { if (!DB.jndiJdbcConnAvailable_?) DB.defineConnectionManager(DefaultConnectionIdentifier, DBVendor) // where to search snippet LiftRules.addToPackages(com.harris.cims) Schemifier.schemify(false, Log.infoF _, User, CarrierAccount) // Build SiteMap val entries = Menu(Loc(Home, List(index), Home)) :: User.sitemap LiftRules.setSiteMap(SiteMap(entries:_*)) /* * Show the spinny image when an Ajax call starts */ LiftRules.ajaxStart = Full(() = LiftRules.jsArtifacts.show(ajax-loader).cmd) /* * Make the spinny image go away when it ends */ LiftRules.ajaxEnd = Full(() = LiftRules.jsArtifacts.hide(ajax-loader).cmd) LiftRules.early.append(makeUtf8) S.addAround(DB.buildLoanWrapper) } /** * Force the request to be UTF-8 */ private def makeUtf8(req: HttpServletRequest) { req.setCharacterEncoding(UTF-8) } } /** * Database connection calculation */ object
[Lift] Re: makeUtf8 and HttpServletRequest broken in new build???
I think his point is that he wants it added by default, rather than there is any problem. Personally, I don¹t see the point of adding it by default... But hey. On this note, I¹ve been thinking of perhaps having a re-shuffle in the code base to group the archetypes together in a module and add a bunch of other archetypes for various things such as: PayPal Akka AMQP Etc. Thoughts? Cheers, Tim On 17/08/2009 18:10, David Pollak feeder.of.the.be...@gmail.com wrote: I'm able to create a new Basic Lift app from archetypes... and it works just fine. Can you tell us what command you typed to get an archetype that did not work? --~--~-~--~~~---~--~~ 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: Deploying
I run several sizable applications with NGINX and Jetty... Works like a dream. On 17/08/2009 18:55, Peter Robinett pe...@bubblefoundry.com wrote: I know David likes running Nginx in front of Jetty --~--~-~--~~~---~--~~ 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: makeUtf8 and HttpServletRequest broken in new build???
They would still output the same of course I just see a need for a few more starting points and I don¹t want to clutter the main codebase so a little bit of housekeeping is in order :-) Cheers, Tim On 17/08/2009 23:43, David Pollak feeder.of.the.be...@gmail.com wrote: As long as you don't mess with the Basic archetype... I'm cool. --~--~-~--~~~---~--~~ 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: CMS for Lift?
Just my two cents, but I wouldn't use the lift namespace... If you use the lift tags OOTB, you risk designers shoving lots of comet actors on a single page. You would get more granular control if you created a special set of tags: cms:something .. / Cheers, Tim On 18/08/2009 23:00, Ewan ehar...@gmail.com wrote: I've been scratching my head about that one too. I have used both Alfresco and opencms to produce both dynamic and static and in the case of dynamic they have their own servlet/filter to render the content - I've not yet spent enough time working out how and if they can be fitted together. For me, having used Hybris (J2EE ecommerce engine with some CMS built in), I'd like to be able to have page fragments in a template served from the CMS (lift snippets presumably) that would be created/ maintained with some aspect of workflow by CMS user(s) in an associated CMS lift webapp with funky (X)HTML editor support. My web guys, non-lift devs, can then sprinkle cms tags where appropriate. A tag might be lift:cms contentId=news count=5 order=ascending/ which would render the last five news items in ascending order. Just some thoughts -- Ewan On Aug 18, 10:09 pm, Terry J. Leach terry.le...@gmail.com wrote: I would like to know how the Lift/Scala can leveraged to with Alfresco or any other open source Java based CMS. Terry J. Leach On Aug 17, 2:09 pm, Stefan Scott stefanscottal...@gmail.com wrote: I'll chime in here since I've been evaluating several CMSs lately. I previously used Drupal and WordPress as my CMSs - now however I'm moving everything to MODx because of the increased flexibility and more-logical organization, and I'm also impressed with the demos of SilverStripe, TypoLight Typo3 - and LifeRay, which is written in Java instead of PHP. (LifeRay seems to be much more than a CMS - it claims to offer collaboration and social networking.) Some on-line demos here: MODx -http://trymodx.com/ SilverStripe -http://demo.silverstripe.com/ TypoLight -http://www.typolight.org/demo.html Typo3 -http://testsite.punkt.de/ LifeRay -http://demo.liferay.net/web/guest/home It would be good to take a look at these additional CMSs as they offer some capabilities beyond WordPress and Drupal. Drupal in particular is wildly popular but it may no longer be the best candidate to imitate, as it is less well-organized and less flexible/customizable (compared say to MODx, which lets you take CSS from an existing site and use it for your site, and which lets you apply a template to a single document, unlike Drupal where a theme applies to the entire site). To keep up with advanced CMSs, Drupal has evolved to use a bunch of (often redundant or competing) modules which are not always compatible with current releases. Examples of things that Drupal treats as add-ons (modules) are: custom content (the CCK/Views modules, with their confusing albeit AJAX-y interface), multi-language, and photo galleries (I gave up on Drupal after a few days of trying out various photo gallery modules, none of which I could understand). Finally, it seems odd that Drupal, as a content management system, lacks something all advanced CMSs have: a *treeview* of the overall site content. Instead, it only has a jumbled *list* of content, sorted by not by location but by last edited (!), with all translations also scattered through the list based on last- edited date, and this list is buried several levels deep in the admin navigation system, unlike the site content treeview navigator which is prominently displayed (usually on the left) in advanced CMSs. (Of course, I don't want to veer off-topic here and start a CMS flame war here in this liftweb discussion. :-) Regarding dynamic site map creation - I do know that MODx has something like this, using WayFinder to create a menu from selected branches of the site's document tree, automatically including any updated sub-branches, and I believe most other advanced CMSs have something like this too. LifeRay seems very intriguing - it claims to do a lot beyond just CMS. Since it's written in Java (not PHP), who knows if some of its code could be leveraged in Scala. So these might be some additional interesting CMSs to keep in mind (beyond Drupal and WordPress) when building a new CMS using liftweb. - Stefan Scott On Aug 16, 3:13 pm, glenn gl...@exmbly.com wrote: Philip, I'm working on a cms system in Lift. Right now, it allows for content creation using wymeditor, which can be tagged and displayed as an atom feed. This code is runnable, simple as it is. I'm working on adding dynamic site map creation as well. Is this kind of what you have in mind by a CMS system. I'm very interested in workiing with others on a CMS that can compete with any of the PHP varieties out there, such as Drupal and Wordpress. Most of these simply use plugins from one ore more javascript libraries out there
[Lift] Re: Relax method scope
Committed - I also added a dirty_? : Boolean method to Field.scala Cheers, Tim On Aug 18, 6:38 pm, David Pollak feeder.of.the.be...@gmail.com wrote: It's okay to relax it... maybe even make it public. On Tue, Aug 18, 2009 at 8:57 AM, Timothy Perrett timo...@getintheloop.euwrote: Guys, Is there a good reason that this method in MetaRecord is private [record]? private[record] def foreachCallback(inst: BaseRecord, f: LifecycleCallbacks = Any) { lifecycleCallbacks.foreach(m = f(m._2.invoke(inst).asInstanceOf [LifecycleCallbacks])) } Its a useful thing to want to implement in your custom record backends (DBRecord makes use of it for example) - can I relax it to: protected def foreachCallback(inst: BaseRecord, f: LifecycleCallbacks = Any) { lifecycleCallbacks.foreach(m = f(m._2.invoke(inst).asInstanceOf [LifecycleCallbacks])) } Cheers Tim -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---