Re: [Lift] More dynamic Lift

2010-03-09 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Folks, I spent today cracking the code on how to implement a more dynamic Lift development cycle. Awesome! Specifically, I figured out how to support (during development mode) having changes in compiled code reflected in the running

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread Jeppe Nejsum Madsen
On Tue, Mar 9, 2010 at 9:33 AM, Timothy Perrett timo...@getintheloop.eu wrote: I'm afraid I agree with Marius... I'm just not sure on the benefit here over JRebel? My main pain point was changes to Sitemap. JRebel doesn't help you here as it's fixed once Lift is booted... /Jeppe -- You

Re: [Lift] Re: More dynamic Lift

2010-03-09 Thread Jeppe Nejsum Madsen
On Tue, Mar 9, 2010 at 12:08 PM, Timothy Perrett timo...@getintheloop.eu wrote: BTW, with SBT, don't forget you can do: jetty-run (make changes to your code) prepare-webapp That will redeploy chnaged files / classses to the running jetty instance so development with SBT can still be slick

Re: [Lift] Re: field without mapper and Form validation

2010-03-09 Thread Jeppe Nejsum Madsen
On Tue, Mar 9, 2010 at 3:17 PM, Francois fan...@gmail.com wrote: Le 09/03/2010 10:12, Francois a écrit : Hello guys, I'm often using forms without anything to do persistence and RDBMS related, but I would like to be able to use Fields (StringField, EmailField, my owns, etc), validation,

Re: [Lift] Re: How to use lazy-load?

2010-03-09 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: I opened defect 412 and this is now on the review board: http://reviewboard.liftweb.net/r/263/diff/#index_header Wow, that was fast :-) Thanks for looking into this! /Jeppe -- You received this message because you are subscribed to the Google Groups

Re: [Lift] Lift-M2 One To Many and CRUDify

2010-03-08 Thread Jeppe Nejsum Madsen
ojonam manojo10...@gmail.com writes: Hello all, I recently tested the wiki example of Book and Authors as an exercise, and extended them with CRUDify. On generation, however, the Author field in the Book create page says : Can't Change!, instead of giving me a select list of all the

Re: [Lift] Re: Javascript Dependencies

2010-03-08 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: On Mar 6, 9:14 pm, Peter Robinett pe...@bubblefoundry.com wrote: [...] Hmmm ... anything that is outputting (x)html. We have snippets, comet actors, LiftView-s. Any of these can called multiple times but IMHO registration should happen once. For

[Lift] How to use lazy-load?

2010-03-08 Thread Jeppe Nejsum Madsen
Hi, I have a page with a somewhat lengthy first-time load. So I found lazy-load that looked handy, but it doesn't seem to work. This is my template: lift:surround with=wide at=content h2Udvikling per måned/h2 lift:lazy-load lift:performanceChart div class=span-5 Vis:br/

[Lift] Enable -Xcheckinit in 2.8 port?

2010-03-08 Thread Jeppe Nejsum Madsen
Hi, Just found out why the Logging stuff doesn't work on the 2.8 branch. Details here: http://permalink.gmane.org/gmane.comp.lang.scala.user/24469 Is it somehow possible to enable the -Xcheckinit flag for the 2.8 branch? Don't know how common that issue is, but it may help trap some subtle

Re: [Lift] Re: How to use lazy-load?

2010-03-08 Thread Jeppe Nejsum Madsen
On Mon, Mar 8, 2010 at 5:42 PM, Marius marius.dan...@gmail.com wrote: Can you please send me a minimalistic example ? .. The comet actor shutdown looks correct to me as after the lazy content is rendered that comet is not needed anymore. Not easily. When I get some time I'll see if I can

Re: [Lift] @Req for PermRedirectResponse after a site redesign

2010-03-08 Thread Jeppe Nejsum Madsen
Bob Folkerts rob...@folkertsfotografie.com writes: I am switching my wife's hosted photography site to Liftweb, largely as a reason to learn Lift. Part of the conversion is moving the old directory structure to a cleaner structure. I wanted to redirect all of the old URI's to the modern

Re: [Lift] Re: More dynamic Lift

2010-03-08 Thread Jeppe Nejsum Madsen
On Tue, Mar 9, 2010 at 2:42 AM, harryh har...@gmail.com wrote: What's the advantage of this sort of setup over using JavaRebel? Sitemap and other things set in boot doesn't really change even if the class is reloaded by JRebel /Jeppe -- You received this message because you are subscribed to

Re: [Lift] superficial first impressions from a rails junkie

2010-03-06 Thread Jeppe Nejsum Madsen
cageface milese...@gmail.com writes: [lots of stuff about layout] I agree and as Marius wrote it's (the website at least) is a known issue and is being worked on. But it's moving slowly. I think the underlying problem here is that the Lift committers are mostly code geeks and not really into

Re: [Lift] superficial first impressions from a rails junkie

2010-03-06 Thread Jeppe Nejsum Madsen
Timothy Perrett timo...@getintheloop.eu writes: Sorry Jeppe, but I disagree. On which part :-) Maybe the not really into the visual aesthetics. What I meant was not that we don't care, but more that we will rather spend time on coding. The issue to date has been getting someone to work on it

Re: [Lift] Customizing generated form elements without touching scala code

2010-03-05 Thread Jeppe Nejsum Madsen
On Fri, Mar 5, 2010 at 1:07 PM, Julian Backes julianbac...@googlemail.com wrote: Hi, I'm trying to get my first form in Lift running and I'm having the following problem: I use for example SHtml.text(..) to create a text input element. Unfortunately, this element has no specific class or id

Re: [Lift] email validation configuration

2010-03-05 Thread Jeppe Nejsum Madsen
On Fri, Mar 5, 2010 at 2:21 PM, GA my_li...@me.com wrote: Hello guys, could you please let me know where I can find information about how to configure the email validation for the MegaProtoUser? I do not know how to tell Lift about our SMTP server, Authentication data, etc. I was

Re: [Lift] Textmate bundle with codecompletion (beta)

2010-03-04 Thread Jeppe Nejsum Madsen
Mads Hartmann Jensen mads...@gmail.com writes: Ok, This is the last time I'll bump this (I promise) - anyone using TextMate can follow the bundle on github. I improved the bundle and it's fairly usable now, check out a teaser video here:

Re: [Lift] Response Optimizations too aggressive

2010-03-04 Thread Jeppe Nejsum Madsen
aw anth...@whitford.com writes: [...] !--[if IE 6] script type=text/javascript id=ie6fix ... / script ![endif]-- Firefox and Chrome will ignore these, which is perfect, and only IE will pay attention (and suffer the overhead). All was working fine in dev, then came time to roll out

Re: [Lift] Re: Response Optimizations too aggressive

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 8:47 AM, aw anth...@whitford.com wrote: On Mar 3, 10:56 pm, Ross Mellgren dri...@gmail.com wrote: There's a FactoryMaker in LiftRules that looks like it may do what you want -- try: LiftRules.stripComments.default = () = false -Ross This looks promising.  Alas:  

Re: [Lift] non snapshot version of lift for scala 2.8

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 10:39 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: Lukasz, We don't have non-SNAPSHOT version of Lift for scala 2.8 branch yet. You are encouraged to use 2.0-scala280-SNAPSHOT and report any issue that you encounter. Is there a status of the 2.8 branch

Re: [Lift] non snapshot version of lift for scala 2.8

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 12:27 PM, Indrajit Raychaudhuri indraj...@gmail.com wrote: On 04/03/10 3:26 PM, Jeppe Nejsum Madsen wrote: On Thu, Mar 4, 2010 at 10:39 AM, Indrajit Raychaudhuri indraj...@gmail.com  wrote: Lukasz, We don't have non-SNAPSHOT version of Lift for scala 2.8 branch yet

Re: [Lift] SQL error

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 1:25 PM, Mads Hartmann mads...@gmail.com wrote: Hello everyone, I'm not sure if this is a lift problem or it's me. I'm trying to add the ability to upload images to a project - I'm using the code explained here:

Re: [Lift] Re: SQL error

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 1:49 PM, Mads Hartmann mads...@gmail.com wrote: Ah! That fixed it, thanks a lot Jeppe ;) I'm not sure what to say in the ticket though, the column-name blob was a bad choise made by me. Yes, but lift tries to be clever and changes the column name if it matches a

Re: [Lift] Re: New logging code is in master

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 6:12 PM, Stuart Roebuck stuart.roeb...@gmail.com wrote: Trying this on 2.8 with the 2.8 Lift Snapshot. The Logger trait seems to work fine though looking at the code I can't see how setup gets called. It should be called when the lazy val checkConfig is being

Re: [Lift] Re: conflicting slf4j versions when using M3 with smile

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 8:35 PM, harryh har...@gmail.com wrote: OK, did that (like so in sbt): override def ivyXML =    dependencies      dependency org=net.lag name=smile rev=0.8.12        exclude module=slf4j-jdk14/      /dependency    /dependencies I'm also getting this error when

Re: [Lift] Re: conflicting slf4j versions when using M3 with smile

2010-03-04 Thread Jeppe Nejsum Madsen
On Thu, Mar 4, 2010 at 9:21 PM, harryh har...@gmail.com wrote: Hmm, slf4j-log4j12-1.5.11.jar ends up being in the classpath twice (from /Users/harryh/foursquare.web/lib_managed/compile and /Users/harryh/foursquare.web/target/webapp/WEB-INF/lib). A quick fix would be to apply exclusion of

Re: [Lift] JUnit test using Selenium RC

2010-03-03 Thread Jeppe Nejsum Madsen
On Wed, Mar 3, 2010 at 10:30 AM, Tweek d.sztwio...@gmail.com wrote: Hi, I'm writting Selenium tests with Scala JUnit. The problem is when i try to put value in SHtml.ajaxText field. Selenium RC doesn't call my js function from this ajaxText. Not sure exactly what you mean by the above, but

Re: [Lift] Re: JUnit test using Selenium RC

2010-03-03 Thread Jeppe Nejsum Madsen
in my ajaxText field, but the setName function is not call - i'm not get any log in console where jetty is running On 3 Mar, 10:40, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On Wed, Mar 3, 2010 at 10:30 AM, Tweek d.sztwio...@gmail.com wrote: Hi, I'm writting Selenium tests with Scala JUnit

Re: [Lift] minified js artifacts (was Re: Re-opened #363)

2010-03-03 Thread Jeppe Nejsum Madsen
Indrajit Raychaudhuri indraj...@gmail.com writes: A quick followup on this minified js concern... [...] So the question is, should we: 1. Continue using yuicompressor (to compress js files at build time) and apply the strategy universally to all toserve/**/*.js OR 2. Include the minified

Re: [Lift] minified js artifacts (was Re: Re-opened #363)

2010-03-03 Thread Jeppe Nejsum Madsen
Indrajit Raychaudhuri indraj...@gmail.com writes: [...] My interest in the current context, is to have consistent behavior in the js artifacts bundled with Lift. To me (and Marius) #2 is also worth consideration. True that you'd have a compressed (IDE unfriendly) js in the codebase but

Re: [Lift] Snippets in subpackages?

2010-03-03 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: [...] One of the things I do with page-specific snippets is call them out in SiteMap: Loc(..., Snippet(foo, snipetFunc)) That's actually a neat trick! I've been using this as well, but more in a CRUDify style way. I'm still trying to come

Re: [Lift] Transactions with Mapper

2010-03-02 Thread Jeppe Nejsum Madsen
ced docpom...@googlemail.com writes: When I use Mapper outside a request, say in an actor, how do I wrap it in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper) to have transactions within a request. Can anyone provide a simple code snippet? You can use use :-)

[Lift] Is CometActor the right tool for this job?

2010-03-02 Thread Jeppe Nejsum Madsen
Hi, I haven't used Lift's comet support at all, but now it seems like a use case has popped up. I can do this with POA (Plain Ol Ajax), but, at least for me, it looks like CometActor might be a better fit. The use case is this: We need to show a page containing a chart and some tables with data.

Re: [Lift] reload application.properties

2010-03-02 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: [...] What do you keep in your properties files that can change at runtime? Translated strings. You keep your translated strings in the files accessed by net.liftweb.util.Props? I haven't done any Lift localization, but I think that's

Re: [Lift] Maven projects generating with old Lift versions?

2010-03-02 Thread Jeppe Nejsum Madsen
Nolan Darilek no...@thewordnerd.info writes: OK, I must be missing something. I copied this almost verbatem from the mini-guide on the Wiki, modified it and made it a shell script. Here's what I have: #!/bin/sh mvn archetype:generate -DarchetypeGroupId=net.liftweb \

Re: [Lift] Is CometActor the right tool for this job?

2010-03-02 Thread Jeppe Nejsum Madsen
Thanks to all for the feedbackjust one remaining question below: On Tue, Mar 2, 2010 at 7:11 PM, David Pollak feeder.of.the.be...@gmail.com wrote: [...] Unless you're going to update the graph synchronously, the comet solution is not the best.  A graph with ajax/json elements that update

Re: [Lift] The role of LiftRules

2010-03-02 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: Would it be a bad idea to use java.util.Date for now, and if and when support is added for JodaTime, change it to a DateHolder (which would be added then)? Haven't looked in detail, but wouldn't this require two changes to client code? 1) One to

Re: [Lift] Re: About the url rewrite (more thant one params and get 404 not found error)

2010-03-01 Thread Jeppe Nejsum Madsen
Neil.Lv anim...@gmail.com writes: On Mar 1, 3:53 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'm not sure if this can be handled with the standard ParsePath, but it is fairly easy to write your own extractor that can handle more complex scenarios. Here's an example: object

Re: [Lift] New logging code is in master

2010-03-01 Thread Jeppe Nejsum Madsen
On Mon, Mar 1, 2010 at 12:20 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Excellent! We have the deprecations turned off in the pom.xml file by default... but gotta turn the deprecation warnings on post M3. Not sure what this means? Do the generated jars on scala-tools not contain

[Lift] snakify and abbreviations

2010-03-01 Thread Jeppe Nejsum Madsen
Hi, Eager to use the new Mapper support for snake_case I discovered that the snakify method doesn' handle abbreviations well: StringHelpers.snakify(HTML) res5: java.lang.String = h_t_m_l StringHelpers.snakify(HTMLEditor) res6: java.lang.String = h_t_m_l_editor I would expect those to be html

Re: [Lift] Re: Javascript Dependencies

2010-03-01 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: [...] I'm not sure that doing this per snippet is the right approach. Maybe we differ in our thinking then :-) I'm thinking more in a component oriented approach where I would like to put a widget on a page. I'll just add the correct snippet tags to my

Re: [Lift] Newbie Q: Lift suitable as webgui for java 6 app with embedded webserver and no database ?

2010-03-01 Thread Jeppe Nejsum Madsen
mortench morte...@gmail.com writes: Hi All, [...] How suited would Lift be for this scenario or to be more precise: a) Is a lift web app as fast to startup as a normal jave jsp/servlet app ? Depends mostly on your own code. If you have an empty Boot, startup is 1s. b) Can lift be used

[Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So I was thinking that it would be an idea to add a MapperRules.nameToDisplayName such as this var nameToDisplayName: ( Mapper[_], String) = (_,name) = name This would

Re: [Lift] Re: Javascript Dependencies

2010-03-01 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: Yes we do have different perspectives. I'm saying for page X here these are the JS dependencies whether you seem to say here is a snippet, and it needs these dependencies Yes I'd still prefer my paradigm (not because of my ego) because it'd be easier

Re: [Lift] Re: newbie question : get lift to actually run (AbstractMethodError)

2010-03-01 Thread Jeppe Nejsum Madsen
On Mon, Mar 1, 2010 at 4:35 PM, ojonam manojo10...@gmail.com wrote: - tried to create a lift blank app with 2.0-snapshot, adapting the archetype:generate command from the book as required Try to show the complete command. Or look in the ML for commands that work with 2.0-SNAPSHOT So I

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows jim.barr...@gmail.com wrote: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows jim.barr...@gmail.com writes: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your replacing code boilerplate with property

Re: [Lift] reload application.properties

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a

Re: [Lift] Less boilerplate in your specifications / tests

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Eric, You're a Lift committer. Feel very encouraged to clean up the tests! But if you do, please have in mind that not all the niceties of Specs are supported very well by IDEs, which may be why some tests are as they are :-( Hopefully

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows jim.barr...@gmail.com writes: My point was that you've moved the boilerplate, not eliminated it. If what you suggest was in place you'd have to add 100+ properties in a file. I'm not sure if we're wandering out on a philosophical tangent here, but would genuinely like to hear if

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Jeppe Nejsum Madsen
John Pletka jple...@abraxis.com writes: I was tasked with designing a new web-based application that has the requirement of being able to run on multiple servers that could be 1) Load balanced without requiring sticky sessions and 2) Single nodes could be transparently shutdown or added

Re: [Lift] Running parallel site load balanced

2010-03-01 Thread Jeppe Nejsum Madsen
Ahh just saw David beat me to it with the other reply :-) John Pletka jple...@abraxis.com writes: It is a business application - lots of forms, reports, data lookups. I'm not too concerned about the performance on a single node - at any given time we'll probably have a max of 1000 requests a

Re: [Lift] Re: [Lift committers] Lots to do by end of day on Sunday **Important for Committers**

2010-02-28 Thread Jeppe Nejsum Madsen
Naftoli Gugenheim naftoli...@gmail.com writes: Would anyone be able to change my open tickets to after M3? I don't think I'l have a chance to deal with them before code slush. I'm not sure but I think they're 257, 258, 370, and 371. Thanks! Moved to M4 /Jeppe -- You received this

[Lift] New logging code is in master

2010-02-28 Thread Jeppe Nejsum Madsen
The new logging code is now in master and should be fully usable. Therefore, the existing logging code has been deprecated. I've added a Wiki article here: http://wiki.github.com/dpp/liftweb/logging-in-lift /Jeppe -- You received this message because you are subscribed to the Google Groups

[Lift] *** BREAKING CHANGE *** Issue 155: Mapper JSON

2010-02-28 Thread Jeppe Nejsum Madsen
The changes mentioned here has been committed to master: http://groups.google.com/group/liftweb/browse_frm/thread/8db6bbb93c16e0f5/e9c3cdce2f011313?lnk=gstq=MappedField.name%2C+affects+Mappe#e9c3cdce2f011313 This means that MappedField.name is no longer lower cased, but preserves the case of the

[Lift] Re: New logging code is in master

2010-02-28 Thread Jeppe Nejsum Madsen
On Sun, Feb 28, 2010 at 5:14 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: The new logging code is now in master and should be fully usable. Therefore, the existing logging code has been deprecated. .although I don't seem to get any deprecation warnings when using eg Log.info Can

Re: [Lift] About the url rewrite (more thant one params and get 404 not found error)

2010-02-28 Thread Jeppe Nejsum Madsen
Neil.Lv anim...@gmail.com writes: Hi all, I have a silly question about the url rewrite in the lift. It has another two params in the url after the img. http://localhost:8080/show/img/version/id The url works fine. = http://localhost:8080/show/img =

[Lift] Maven help!

2010-02-26 Thread Jeppe Nejsum Madsen
Hi, For the new logging code I need a setup that I can't really see how to achieve with Maven: 1) Both slf4j-log4j and logback-classic needs to be on the classpath when compiling 2) Only sf4j-log4j should be on the classpath when testing 3) None should be included in the generated pom

[Lift] Direct access to response.outputStream?

2010-02-26 Thread Jeppe Nejsum Madsen
Hi, I need to create a response that downloads a file. The file is generated by a 3rd party api that takes an output stream as the target for the file. As the file can be rather large, I would like to stream this file directly to the client. I've looked at StreamingResponse, but this seem to

Re: [Lift] Re: Direct access to response.outputStream?

2010-02-26 Thread Jeppe Nejsum Madsen
Marius marius.dan...@gmail.com writes: On Feb 26, 11:50 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, I need to create a response that downloads a file. The file is generated by a 3rd party api that takes an output stream as the target for the file. As the file can be rather large, I

Re: [Lift] Re: Direct access to response.outputStream?

2010-02-26 Thread Jeppe Nejsum Madsen
On Fri, Feb 26, 2010 at 12:06 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: So the thread creation/scheduling and the two times file copying could be avoided by writing directly to the output stream. But I agree this would have to be special cased somehow. It's not an urgent issue atm

Re: [Lift] Re: Maven help!

2010-02-26 Thread Jeppe Nejsum Madsen
On Fri, Feb 26, 2010 at 1:35 PM, Steve Swing steve.sw...@gmail.com wrote: In addition to specifying the scope of test or compile does optionaltrue/optional help with what you want? Yes, I think optional can help with the third point. /Jeppe -- You received this message because you are

Re: [Lift] Re: Direct access to response.outputStream?

2010-02-26 Thread Jeppe Nejsum Madsen
On Fri, Feb 26, 2010 at 1:53 PM, Marius marius.dan...@gmail.com wrote: On Feb 26, 1:29 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On Fri, Feb 26, 2010 at 12:06 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: So the thread creation/scheduling and the two times file copying could

Re: [Lift] Add lock() to MetaMapper

2010-02-26 Thread Jeppe Nejsum Madsen
On Fri, Feb 26, 2010 at 2:10 PM, harryh har...@gmail.com wrote: Sent this to dpp the other day with the idea that it might be a useful addition to MetaMapper.  Would others find this useful?  (It's a tad PostgreSQL specific in its current form). object LockMode extends Enumeration {  type

[Lift] Matching on Mapper fields

2010-02-26 Thread Jeppe Nejsum Madsen
Hi, I would expect the following code to print at most a single line: Vehicle.mappedFields.filter(_.dbIncludeInForm_?) foreach {f = f match { case Vehicle.customCategory = Log.info(Matched on field: +f.name) case _ = } } But what happens is that

Re: [Lift] Maven help!

2010-02-26 Thread Jeppe Nejsum Madsen
Josh Suereth joshua.suer...@gmail.com writes: including something at compile-time and not test time is a rare thing for maven, which assumes tests also need dependencies used to compile. Of all the scopes you can specify for dependencies *all* of them end up on the testing classpath. (see

Re: [Lift] Matching on Mapper fields

2010-02-26 Thread Jeppe Nejsum Madsen
On Fri, Feb 26, 2010 at 5:31 PM, Naftoli Gugenheim naftoli...@gmail.com wrote: case _ if f eq ... ? Yeah that works, but then it might be easier to just use an if(f eq ..) /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group,

Re: [Lift] Javascript Dependencies

2010-02-25 Thread Jeppe Nejsum Madsen
Peter Robinett pe...@bubblefoundry.com writes: Hi all, [...] // Usage in boot.scala val myJsScript = new JsScript(flot :: jquery.flot.selectable.js :: Nil) ResourceServer.allow(myJsScript.allowResource) // Usage in a normal snippet def mySnippet = { head {

[Lift] Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
Hi, I'm about to start sprinkling the new logging code over some of Lift's internals. But first, the logging backend needs configuring. When the dust has settled and the new logging code is fully implemented, this needs to happen in a client app: 1) Choose a logging backend and add the

Re: [Lift] Re: This is the style of SQL persistence that I like ...

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 7:36 AM, aw anth...@whitford.com wrote: On Feb 24, 12:47 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: We're currently using Rails migrations and I've been thinking if putting migrations into the app is really the right approach? What happens if migrations fail? It's

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 10:32 AM, Marius marius.dan...@gmail.com wrote: I'd opt in for something like: LiftRules.logger = Log4J Agree this fits the current idioms, but how should this be triggered? The new logging code is in lift-common so cannot call stuff in LiftRules. Note we're not

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 10:53 AM, Timothy Perrett timo...@getintheloop.eu wrote: +1 This fits with the idioms we already have. Although, so Lift doesn't carry a default dependency it would probably need to be: // default LiftRules.logger = NoLogger I'm not sure this is worth it. It's

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 11:44 AM, Marius marius.dan...@gmail.com wrote: Then perhaps: LiftRules.initLogger(Log4J) I'll buy that :-) /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com.

Re: [Lift] Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 5:35 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: On 25 February 2010 10:23, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: 2) Initialize the logging backend What needs to be initialized? Loading (dev|prod|default) property file that specifies appenders, log

Re: [Lift] Re: Logging, part 2

2010-02-25 Thread Jeppe Nejsum Madsen
On Thu, Feb 25, 2010 at 7:48 PM, Ross Mellgren dri...@gmail.com wrote: My concern about putting this in LiftRules is that not all applications that could benefit from the new logging support will use webkit, since the logging is in common. Maybe a bridge method in LiftRules to put it in a

Re: [Lift] Signup validation

2010-02-24 Thread Jeppe Nejsum Madsen
Adam Warski a...@warski.org writes: Hello, I'm integrating recaptcha into a Lift app that uses MegaProtoUser, and there's one small thing that I think can be improved. There is currently no good place to put the captcha-verifying code. After the signup form is submitted the user if

Re: [Lift] Signup validation

2010-02-24 Thread Jeppe Nejsum Madsen
On Wed, Feb 24, 2010 at 6:05 PM, Adam Warski a...@warski.org wrote: Hello, Can't you just override actionAfterSignup and don't call super if captcha check fails? But that already assumes that signup was successfull and in the end redirects to the homepage instead of going back to the

Re: [Lift] Hooking up custom login logic with ProtoUser's logUserIn and actionsAfterSignup

2010-02-24 Thread Jeppe Nejsum Madsen
On Wed, Feb 24, 2010 at 7:21 PM, dave dpdear...@gmail.com wrote: Further investigation leads me to believe that each pathway is either working in a different session or that Lift just doesn't know about my application's session. S.inStatefulScope_? returns true from the Lift pathway and false

Re: [Lift] [urgent] Master is fundamentally broken!!!!!!

2010-02-24 Thread Jeppe Nejsum Madsen
On Wed, Feb 24, 2010 at 6:34 PM, Timothy Perrett timo...@getintheloop.eu wrote: Thanks for the follow up David. Probably this highlights some issues with our automated testing though... any ideas on how we could add something to the build cycle to verify stuff like this? The parsers

Re: [Lift] [urgent] Master is fundamentally broken!!!!!!

2010-02-24 Thread Jeppe Nejsum Madsen
[...] But, this is the exception (both in terms of my behavior and in terms of the results.)  It is an event that indicates that our current process works and those that circumvent that process (including me) should wear the cone of shame. Pictures?? :-) /Jeppe -- You received this

Re: [Lift] Re: This is the style of SQL persistence that I like ...

2010-02-24 Thread Jeppe Nejsum Madsen
On Wed, Feb 24, 2010 at 9:38 PM, David Pollak feeder.of.the.be...@gmail.com wrote: I've pinged Max and he's open to integration with Lift... do I have any takers? On Wed, Feb 24, 2010 at 12:34 PM, Timothy Perrett timo...@getintheloop.eu wrote: Interesting - i've not explored that in 2.8...

[Lift] Problem with mapper exceptions and logging

2010-02-24 Thread Jeppe Nejsum Madsen
Hi, It seems that when a mapper exception is thrown and logging is enabled (with DB.addLogFunc) the logging proxy itself throws an error: This is unfortunate since it can lead to different code paths if logging is enabled or not.is this unfixable or should I file a ticket?

Re: [Lift] LiftRules.jQueryVersion ... :(

2010-02-23 Thread Jeppe Nejsum Madsen
+1 (and we might as well add 1.4.2 as well/instead :-) On Tue, Feb 23, 2010 at 9:11 AM, Marius marius.dan...@gmail.com wrote: Guys, This has been added not so long ago, and I am aware that I should express my perspective on this back then as now it might be too late. IMHO LiftRules or other

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Jeppe Nejsum Madsen
On Mon, Feb 22, 2010 at 8:48 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Folks, I really do not understand the value of setting the run mode statically via code in LiftRules. The run mode should be set externally, right? In order to use the same artifact (WAR) on a dev or a prod

Re: [Lift] Re: Cached CSS (and Javascript?) issue

2010-02-22 Thread Jeppe Nejsum Madsen
On Sun, Feb 21, 2010 at 9:49 AM, Marius marius.dan...@gmail.com wrote: Guys, I'm starting to have second thoughts about having css or js combine (concatenation of multiple files into a single response) on lift side. I'm starting to question that real benefits as in production sites in many

[Lift] unCamelCase,camelCase capify

2010-02-22 Thread Jeppe Nejsum Madsen
Hi, I'm finally returning to #155 (support for snake_case in Mapper) and found a few inconsistencies In StringHelpers we have capify commafy (which I don't really understand, but never mind :-) In ClassHelpers we have camelCase camelCaseMethod unCamelCase The methods in ClassHelpers are just

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-22 Thread Jeppe Nejsum Madsen
On Mon, Feb 22, 2010 at 7:13 PM, David Pollak feeder.of.the.be...@gmail.com wrote: I've closed Jeppe's ticket.  Why? WebKit depends on util.  Props (where the runmode is defined) is in util, so there would be a circular reference if LiftRules was used to calculate the runmode. Further, util

Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: Folks, Please join me in welcoming John De Goes as a Lift committer. John burst onto the Lift scene a week or so ago with some excellent enhancements to the Lift-json stuff and the rest is history. Welcome John... looking forward to

Re: [Lift] Re: Tricky question regarding menus

2010-02-22 Thread Jeppe Nejsum Madsen
Heiko Seeberger heiko.seeber...@googlemail.com writes: Hi, Sorry for being pushy, but this one is really urgent. Maybe I did not describe my issue properly, so I will give it another and simpler try: I want a menu to link to a subpage, i.e. have the same link as one of its child menus. But

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-21 Thread Jeppe Nejsum Madsen
On Sun, Feb 21, 2010 at 2:19 AM, Timothy Perrett timo...@getintheloop.eu wrote: The former is a lift idiom that we use for everything configurable... Lets look into doing that. Jeppe: Are you willing to investigate this / take the lead? Yes. I've created

Re: [Lift] Re: Setting run mode for Lift applications

2010-02-20 Thread Jeppe Nejsum Madsen
aw anth...@whitford.com writes: On Feb 18, 9:14 am, Petr Pudlak petr@gmail.com wrote:     Hi all, I've written my first application using Lift and now I'm deploying it into a production. I find it inconvenient that the run mode is specified as a JVM system property. First, sometimes

Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Jeppe Nejsum Madsen
On Sat, Feb 20, 2010 at 7:36 PM, Marius marius.dan...@gmail.com wrote: In boot try setting LiftRules.useXhtmlMimeType = false; I've had the same issues and iircc it's an issue with the Uservoice script not being fully xhtml compliant even if the problem is marked as fixed... What exactly does

[Lift] Potential breaking change: MappedField.name, affects Mapper JSON

2010-02-18 Thread Jeppe Nejsum Madsen
Hi, As part of fixing https://www.assembla.com/spaces/liftweb/tickets/155-lift-mapper-%28record%29-camelcase-to-snake_case-for-case-insensitive-databases , I would like to change the semantics of MappedField.name slightly: Currently, the name is always lowercased, ie: class SampleModel extends

Re: [Lift] Implementing You are here:

2010-02-18 Thread Jeppe Nejsum Madsen
On Thu, Feb 18, 2010 at 3:33 PM, Julian Backes julianbac...@googlemail.com wrote: Hi, I want to implement something like You are here: Root - Somewhere 1 - Somewhere 1.1 which is displayed on all pages. Is it possible to use SiteMap to do that? Can someone give me a hint how to do that?

Re: [Lift]

2010-02-17 Thread Jeppe Nejsum Madsen
On Wed, Feb 17, 2010 at 3:45 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, Since a week or so I get modified files even when I create a fresh clone of the repo. These are some js and css files from lift-widgets and stuff from installer and references. Anyone else experiencing

Re: [Lift] setuid

2010-02-17 Thread Jeppe Nejsum Madsen
On Wed, Feb 17, 2010 at 3:40 PM, trizk tsr...@gmail.com wrote: When i run mvn -e jetty:run in helloworld, it dies with java.lang.ClassNotFoundException: org.mortbay.setuid.SetUIDServer Has anyone had any success running the Jetty plugin as a non-root user for their Lift web applications? I

Re: [Lift] setuid

2010-02-17 Thread Jeppe Nejsum Madsen
On Wed, Feb 17, 2010 at 4:07 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: On Wed, Feb 17, 2010 at 3:40 PM, trizk tsr...@gmail.com wrote: Ok, just reread your post and saw you want to run Jetty on port 80. I've not tried this,I usually run a frontend (such as nginx) in front. Not sure how

Re: [Lift] Context path, proxies Lift

2010-02-17 Thread Jeppe Nejsum Madsen
Ok, I think I got this working, at least in a local POC. Tim got the idea to use Jetty's virtual hosting as described here: http://docs.codehaus.org/display/JETTY/Virtual+hosts. This allows each app to be running in the root context within the virtual host. Nginx only sends HTTP/1.0 requests to

Re: [Lift] Context path, proxies Lift

2010-02-17 Thread Jeppe Nejsum Madsen
Timothy Perrett timo...@getintheloop.eu writes: Yeah, tbh, i've always worked around the issue using relative urls... but I wasn't sure how much of an issue that was for you (in a big codebase, going around converting links is not something you want to have to do). The problem is not so

[Lift] Context path, proxies Lift

2010-02-16 Thread Jeppe Nejsum Madsen
Hi, I want to setup a single nginx in front of two independent lift apps (see previous thread) but haven't succeeded. What I wan't is this: External url foo.com/index.html goes to jetty: localhost:8080/foo/index.html External url bar.com/index.html goes to jetty: localhost:8080/bar/index.html

  1   2   3   4   5   >