[Lift] How to disable XHTML?

2009-12-14 Thread Tweek
Hi Guys Is it possible to disable XHTML only in one html file? When i put LiftRules.useXhtmlMimeType = false in Boot.scala then i'll swich this off in whole project. Is any other place to put this line? Thanks. -- You received this message because you are subscribed to the Google Groups

Re: [Lift] How to disable XHTML?

2009-12-14 Thread Tim Nelson
You can use LiftRules.determineContentType to do this. Here is a sample from my project: LiftRules.determineContentType = { case (_, Full(accept)) if LiftRules.useXhtmlMimeType accept.toLowerCase.contains(application/xhtml+xml) = application/xhtml+xml; charset=utf-8 case _ =

Re: Couldn't start SessionMaster ping error; was: [Lift] Re: odd ajax issue (works every other time)

2009-12-14 Thread Marius
On Dec 14, 7:37 am, O'Rorke Paul p...@ororke.com wrote: Hi:  I am still getting Couldn't start SessionMaster ping errors when I shut down with a control C. Is this just something to be expected on shutting down that way? or do I need to edit my pom.xml and change  

Re: [Lift] Re: About the performance

2009-12-14 Thread David Pollak
On Sat, Dec 12, 2009 at 5:51 PM, daiwhea daiw...@gmail.com wrote: Thanks David. I think lift can give me what I want. There is no doubt on it now. All the problem is can I master it enough. Thanks for all your words. One more thing... in Boot, there's a DB.buildConnectionWrapper line. This

[Lift] Error saving Mapper object

2009-12-14 Thread glenn
I started a new 1.1-Snapshot and am now getting the following error when trying to save a mapper object: Message: net.liftweb.mapper.MapperException: Cannot test the MetaMapper singleton for saved status net.liftweb.mapper.MetaMapper$class.saved_$qmark(MetaMapper.scala: 550)

Re: [Lift] Re: About the performance

2009-12-14 Thread Marcin Mielżyński
On 2009-12-14 02:26, DMB wrote: That's a common misconception among Java folks. Leaving aside the relative merits of the various web frameworks, .NET runtime is about 10% faster on Windows in steady state than Sun Server JRE, and it uses Back it up by a decent benchmark, otherwise tell me

[Lift] Mapping virtual directories

2009-12-14 Thread Alex Black
Can anyone recommend a way to map a virtual directory in Jetty/Lift? E.g. I'd like /images to point to a file system location that is not in my project. Is there a simple Jetty mechanism, or Lift configuration for this type of thing? Thx! - Alex -- You received this message because you are

Re: [Lift] Error saving Mapper object

2009-12-14 Thread David Pollak
On Mon, Dec 14, 2009 at 9:11 AM, glenn gl...@exmbly.com wrote: I started a new 1.1-Snapshot and am now getting the following error when trying to save a mapper object: You're not saving a Mapper instance, you're calling save on the MetaMapper instance. That can cause significant problems,

Re: [Lift] Mapping virtual directories

2009-12-14 Thread Timothy Perrett
Two options as I see it. One is: LiftRules.liftRequest.prepend { case Req(your :: path :: Nil, pdf, GetRequest) = false } This will make lift ignore the request path and the servlet container (jetty in this instance) will serve it. Option 2 is to put a front end rewrite in on your

[Lift] How to handle a redirect to your site with info for a user that still has to sign up/login?

2009-12-14 Thread Jim Barrows
I'm working on a plugin for a website. Essentially a user of the external website (we'll call it Shopify), can click on a link to add my service to their webstore. So Shopify uses a URL like:

[Lift] Re: Mapping virtual directories

2009-12-14 Thread Alex Black
Hi Tim, thanks for the suggestions. I'm new to Jetty etc, so bear with me, but, in your first suggestion, we're basically telling Lift to ignore those requests. Once they are ignored, how do I tell Jetty to look in the mapped folder? Would I write my own servlet? Thanks! - Alex On Dec 14,

[Lift] 1.1-M7 basic archetype errors

2009-12-14 Thread glenn
The 1.1-M7 basic archetype in http://scala-tools.org/repo-snapshots doesn't have a dependency on lift-json and so compilation fails. Adding this dependency in the pom solves this. Also, shouldn't the pom use the SNAPSHOT repo rather than, or at least in addition to, releases? Glenn -- You

Re: [Lift] 1.1-M7 basic archetype errors

2009-12-14 Thread David Pollak
On Mon, Dec 14, 2009 at 10:47 AM, glenn gl...@exmbly.com wrote: The 1.1-M7 basic archetype in http://scala-tools.org/repo-snapshots doesn't have a dependency on lift-json and so compilation fails. Adding this dependency in the pom solves this. Also, shouldn't the pom use the SNAPSHOT repo

[Lift] Re: Error saving Mapper object

2009-12-14 Thread glenn
Stupid me!! I mistakenly put the CRUDify trait on the class, not the object. Thanks a bunch for getting me out of this mess. Glenn On Dec 14, 10:13 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Dec 14, 2009 at 9:11 AM, glenn gl...@exmbly.com wrote: I started a new 1.1-Snapshot

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread David Pollak
Folks, Lift allows developers to create web sites that are: 1. Reliable (which includes secure) 2. Maintainable/concise 3. Highly interactive 4. Easy to build 5. High Performance 6. Easy to on-board (initial understanding of the APIs) Lift's APIs should reflect these

[Lift] [ANN] Lift 1.1-M8

2009-12-14 Thread David Pollak
The Lift Web Framework team is pleased to announce the lift-1.1-M8 release! Lift is an expressive and elegant framework for writing web applications. Lift stresses the importance of security, maintainability, scalability and performance while allowing for high levels of developer

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Timothy Perrett
This is such a preference. Most people use IDEs, I personally dont, but I would still choose clarity and marginal verbosity over less typing. A classic is some places in lift we call it calc and other palces its calculator Cheers, Tim On 14 Dec 2009, at 19:34, David Pollak wrote: I

[Lift] Re: Lift 1.1-M8

2009-12-14 Thread harryh
Huzzah! Welcome M8! -- 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. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at

Re: [Lift] Foreign Key constraints are not created by schemify

2009-12-14 Thread Naftoli Gugenheim
Ah, I see. Where does MappedManyToMany delete anything not in the join table? If you mean the spec feel free to change it or comment out the whole thing and ask me to fix it. By the way it's hardcoded to use H2MemoryProvider. Is OneToMany doing anything bad? Thanks.

[Lift] Location on Mac?

2009-12-14 Thread Donald McLean
If I run the Mac installer, where does it put the Lift files? Thank you, Donald -- Family photographs are a critical legacy for ourselves and our descendants. Protect that legacy with a digital backup and recovery plan. Join the photo preservation advocacy Facebook group:

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Jim Barrows
I snipped some stuff. On Mon, Dec 14, 2009 at 12:34 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 13, 2009 at 10:39 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/12/13 Kris Nuttycombe kris.nuttyco...@gmail.com 5) Avoid using abbreviations I

Re: [Lift] Location on Mac?

2009-12-14 Thread David Pollak
On Mon, Dec 14, 2009 at 12:00 PM, Donald McLean dmclea...@gmail.com wrote: If I run the Mac installer, where does it put the Lift files? The Lift installer simply installs Maven 2.2.0 on your Mac. Once you create a new Lift app or run Maven (mvn) on an existing Lift app, Maven downloads the

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Heiko Seeberger
5) Avoid using abbreviations I disagree. When coding with a non-IDE, abbreviations make life much easier. I agree with David, abbreviations are better. When I'm trying to get something out of my head and into code, I don't want things getting in my way. 2 things in this scenario get

[Lift] Re: Lift 1.1-M8

2009-12-14 Thread Randinn
Very nice, great work guys! On Dec 15, 6:57 am, harryh har...@gmail.com wrote: Huzzah! Welcome M8! -- 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. To unsubscribe from this group, send

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Naftoli Gugenheim
I'm not sure you can generalize whether abbreviations are good or bad. It depends how obvious their meaning is. No one in favor of abreviations wants to replace say JSONResponseType (if such a name exists) with JRT! Nor does anyone want to replace JSON with JavaScriptObjectNotation. Everyone

[Lift] Re: MappedField Callback(s)

2009-12-14 Thread Peter Robinett
Naftoli mentioned the LifecycleCallbacks trait but doesn't actually hook into anything itself – it just provides the methods. To hook into things it looks like you definitely could subclass get and set, but that doesn't strike me as nice from a user's perspective as having the . I just discovered

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Naftoli Gugenheim
Do you have benchmarks comparing the differences in time? Just kidding. :) But I would like to point out, I understand your position, but I think many people would use the exact same argument against abbreviations, if they make it take longer to figure out or remember what their called! Some

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Naftoli Gugenheim
Do you have benchmarks comparing the differences in time? Just kidding. :) But I would like to point out, I understand your position, but I think many people would use the exact same argument against abbreviations, if they make it take longer to figure out or remember what their called! Some

Re: [Lift] Re: MappedField Callback(s)

2009-12-14 Thread Naftoli Gugenheim
I think MetaMapper finds it via reflection--am I wrong? - Peter Robinettpe...@bubblefoundry.com wrote: Naftoli mentioned the LifecycleCallbacks trait but doesn't actually hook into anything itself – it just provides the methods. To hook into things it looks

Re: [Lift] Location on Mac?

2009-12-14 Thread Timothy Perrett
The default location is: /Applications/liftweb-1.0.2 However, if you followed the process you would have been asked where you wanted to install the files... Moreover, the installer alters your bash profile so you have maven available on your $PATH Cheers, Tim On 14 Dec 2009, at 20:56,

[Lift] S.attrs question

2009-12-14 Thread harryh
lift:OuterSnippet form=POST lift:InnerSnippet class=foo style=color:blue /lift:InnerSnippet /lift:OuterSnippet class InnerSnippet { def render(xhtml: NodeSeq) { // S.attrs will, at this point give me (form, POST), (class, foo), (style, color:blue). I only // want the

[Lift] Re: S.attrs question

2009-12-14 Thread harryh
Oh nevermind. S.currentAttrs is what I want. Just didn't see it before. -harryh -- 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. To unsubscribe from this group, send email to

[Lift] Re: Location on Mac?

2009-12-14 Thread Jaroslaw Zabiello
On 14 Gru, 20:56, David Pollak feeder.of.the.be...@gmail.com wrote: The Lift installer simply installs Maven 2.2.0 on your Mac There is newer Maven version available in MacPorts: $ port search maven2 maven2 @2.2.1 (java, devel) -- JZ -- You received this message because you are subscribed

Re: [Lift] Re: Location on Mac?

2009-12-14 Thread David Pollak
On Mon, Dec 14, 2009 at 2:12 PM, Jaroslaw Zabiello hipertrac...@gmail.comwrote: On 14 Gru, 20:56, David Pollak feeder.of.the.be...@gmail.com wrote: The Lift installer simply installs Maven 2.2.0 on your Mac There is newer Maven version available in MacPorts: $ port search maven2 maven2

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Kris Nuttycombe
On Mon, Dec 14, 2009 at 12:31 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Lift allows developers to create web sites that are: Reliable (which includes secure) Maintainable/concise Highly interactive Easy to build High Performance Easy to on-board (initial understanding

Re: [Lift] Re: Feature Request: Header offset in lift-textile

2009-12-14 Thread David Pollak
On Sun, Dec 13, 2009 at 9:55 AM, tommycli tommy...@ucla.edu wrote: A use case is inline page previews for entries - whereas on the full page there should be full headers, on the preview, h1 ought to become h3 etc. I would recommend putting the textile stuff in a div that has a style that

Re: [Lift] lift-textile misprocesses a list without a preceding empty line

2009-12-14 Thread David Pollak
On Sun, Dec 13, 2009 at 10:26 PM, tommycli tommy...@ucla.edu wrote: The below example fails to render a list in lift-textile, but works in the reference implementation (http://textism.com/tools/textile/ index.php http://textism.com/tools/textile/%0Aindex.php). Lists work in lift-textile only

RE: [Lift] Multipage wizards

2009-12-14 Thread Naftoli Gugenheim
Found this sitting in my drafts... :) I agree. It should be possible for library users to have the same meaning with the bytes experience while factoring out Mapper so that the presentation aspect lives in a trait that can be used without Mapper. -Original Message- From: Jeppe Nejsum

[Lift] Re: About the performance

2009-12-14 Thread daiwhea
Thanks David. In fact, I can't find DB.buildConnectionWrapper in the Boot.scala of lift-archetype-jpa-basic archetype. I'm looking for a webframework which I can update some my old PHP site to a new platform for high performance. I think lift can provide what I want. I'm still wondering about