[Lift] Customizing meta fields

2010-03-07 Thread Martin
How would one go about having dynamic description and keyword meta tags in a template? Here is what i've tried: default.html meta name=descriptionb:meta_desc //meta HelloWorld.scala Helpers.bind(b, in, time - date.map(d = Text(d.toString)), meta_desc - test desc) I'm using a basic archetype

[Lift] Activity

2010-03-07 Thread Martin
Hey, First of all, let me take the complete opposite stance observed from one of the most reason posts from a Rails Junkie. I'm very excited to see a framework that takes the good from so many different projects and houses it under a language that does the same. I find it refreshing to have the

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

2010-03-07 Thread cageface
On Mar 6, 5:28 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Back in 2005-2006 Ruby and Rails were not easy to get started with. My first Rails checkins in our VCS are from 2004. I had no trouble at all getting things running back then and don't remember hearing a lot of complaints

Re: [Lift] Activity

2010-03-07 Thread Timothy Perrett
We are currently on version 2.0-M3. Its stable, and production ready... we keep our snapshots very stable and you shouldnt get any problems using it. Cheers, Tim On 7 Mar 2010, at 03:10, Martin wrote: I notice the last production quality release was over a year ago; I do notice there have

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

2010-03-07 Thread Timothy Perrett
Business wise, rails / php etc are not even on the same scale as lift. Rails / PHP etc are cheap, easy ways to deploy *sites*. Lift is for building serious *web applications*. there is a distinct difference... and yes, for these reasons no doubt the higher cost of deployment will scare some

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

2010-03-07 Thread jonathan mawson
If there's no rational reason to use Lift, then perhaps you could find another community to spend your time in. I didn't say that there was no rational reason to use Lift BUT THAT YOU ARE FAILING TO COMMUNICATE WHAT THAT REASON MIGHT BE TO POTENTIAL USERS! You can't expect potential users to

[Lift] Re: Lift security vulnerability

2010-03-07 Thread Joni Freeman
Note, it is very easy to clean up the JSON before rendering by using 'map' function: json map { case JString(s) = JString(sripOutBinaryChars(s)) case x = x } (You just need to implement that sripOutBinaryChars function...). Cheers Joni On Mar 5, 8:26 pm, Dano olearydani...@gmail.com wrote:

[Lift] Js normalizations

2010-03-07 Thread Marius
Dear all, Looking at Js api and specifically JsCmds and JqJsCmds (the Js abstractions vs Jquery specify abstractions) IMHO there are several redundancies: 1. JsCmds has ~ method for referencing member of objects (i.e elem.focus()) but JQuery abstractions have method that chains a JQueryLeft

Re: [Lift] Js normalizations

2010-03-07 Thread Mads Hartmann Jensen
Marius, I think this sounds like a great idea - but I only have 2 Lift projects under development so it would be quite fast for me to make any changes Mads On 07/03/2010, at 19.37, Marius wrote: Dear all, Looking at Js api and specifically JsCmds and JqJsCmds (the Js abstractions vs

[Lift] IdPK Model boiler-plate

2010-03-07 Thread aw
My model classes mix-in IdPK and have the following boiler-plate for equals and hashCode: class Team extends LongKeyedMapper[Team] with IdPK { override def equals (other : Any) = other match { case t : Team if t.id.is == this.id.is = true case _ = false } override def

Re: [Lift] toForm function passing problem ... ?

2010-03-07 Thread David Pollak
On Sun, Mar 7, 2010 at 9:54 AM, hexa hex...@gmail.com wrote: Hi, I'm trying to do something which should be simple I think .. passing a function to toForm like so : class AddClient { def add (inhtml: NodeSeq) : NodeSeq = { val client = Client.create def processEntry () = {

Re: [Lift] IdPK Model boiler-plate

2010-03-07 Thread David Pollak
Good idea. Please open a ticket at https://liftweb.assembla.com/spaces/liftweb/tickets and assign it to me. On Sun, Mar 7, 2010 at 10:57 AM, aw anth...@whitford.com wrote: My model classes mix-in IdPK and have the following boiler-plate for equals and hashCode: class Team extends

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

2010-03-07 Thread David Pollak
Jonathan, your comments are someplace between not helpful and troll-like. It'd be best if you did not continue to participate in this thread. On Sun, Mar 7, 2010 at 5:36 AM, jonathan mawson umpti...@gmail.com wrote: If there's no rational reason to use Lift, then perhaps you could find

[Lift] Re: Js normalizations

2010-03-07 Thread Marius
I'm not sure about the fastness as I also have other things and a 4 days baby boy ;) ... but I think this is fairly important and I'll try to prioritize. On Mar 7, 8:52 pm, Mads Hartmann Jensen mads...@gmail.com wrote: Marius, I think this sounds like a great idea - but I only have 2 Lift

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
Can it be changed with a deprecation phase? - Mariusmarius.dan...@gmail.com wrote: I'm not sure about the fastness as I also have other things and a 4 days baby boy ;) ... but I think this is fairly important and I'll try to prioritize. On Mar 7, 8:52 pm,

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

2010-03-07 Thread Naftoli Gugenheim
I think that Jonathan was impolite in expressing his frustration at being misunderstood. But are his points not valuable? - David Pollakfeeder.of.the.be...@gmail.com wrote: Jonathan, your comments are someplace between not helpful and troll-like. It'd be best

[Lift] Re: Js normalizations

2010-03-07 Thread Marius
Yes that's the idea ... I apologize I didn't actually mean to just remove things out of the sudden. But I'll know more once I get to dig deeper. On Mar 7, 10:13 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Can it be changed with a deprecation phase? -

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
Then it sounds good to me, although that doesn't count as much since I must admit I haven't really had the opportunity to use Lift's ajax and javascript parts. - Mariusmarius.dan...@gmail.com wrote: Yes that's the idea ... I apologize I didn't actually mean

[Lift] Re: Js normalizations

2010-03-07 Thread Marius
You must be unique :) On Mar 7, 10:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Then it sounds good to me, although that doesn't count as much since I must admit I haven't really had the opportunity to use Lift's ajax and javascript parts. -

[Lift] Reorganize mapper specs?

2010-03-07 Thread Naftoli Gugenheim
Based on discussion on Review Board item 247, I want to propose the following change to the organization of Mapper specs. Currently there are four files in framework/lift-persistence/lift-mapper/src/test/scala/net/liftweb/mapper: DBProviders - initalization for each provider to be tested

Re: [Lift] Re: Js normalizations

2010-03-07 Thread Naftoli Gugenheim
I may have a project coming up that would use it though. :) - Mariusmarius.dan...@gmail.com wrote: You must be unique :) On Mar 7, 10:21 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Then it sounds good to me, although that doesn't count as much since I

[Lift] Re: IdPK Model boiler-plate

2010-03-07 Thread aw
Done. Issue 408. Thanks! https://www.assembla.com/spaces/liftweb/tickets/408-add-equals-and-hashcode-to-idpk-trait On Mar 7, 11:53 am, David Pollak feeder.of.the.be...@gmail.com wrote: Good idea.  Please open a ticket athttps://liftweb.assembla.com/spaces/liftweb/ticketsand assign it to me.

[Lift] LongMappedForeignKey should call primeObj in apply(v: O) and apply(v: Box[O])

2010-03-07 Thread Naftoli Gugenheim
Is there any objection to https://www.assembla.com/spaces/liftweb/tickets/411 - MappedLongForeignKey should call primeObj in apply(v: O) and apply(v: Box[O])? In other words, if you set a MappedLongForeignKey by passing it a Mapper instance of the referenced table, is there any reason not to cache

Re: [Lift] Customizing meta fields

2010-03-07 Thread Ross Mellgren
To be parsed by the bind, it must be enclosed by lift:HelloWorld.hello.../lift:HelloWorld.hello There is relatively little magic -- Lift goes through your template looking for lift: prefixed tags. For those tags, it will look up a snippet class by using the part before the period (HelloWorld,

Re: [Lift] Customizing meta fields

2010-03-07 Thread Martin Dale Lyness
Thank you Ross, for the very informative response! Now, I consider SEO to be closer to a designer task than a developer task so keeping the power in the design documents would be my best idea. Is there anyway to allow individual pages to define blocks that are read into the snippets and then

Re: [Lift] Customizing meta fields

2010-03-07 Thread Naftoli Gugenheim
It's not necessary. Just put a head section in the template and it will be combined with the head section in default.html. - Martin Dale Lynessmartin.lyn...@gmail.com wrote: Thank you Ross, for the very informative response! Now, I consider SEO to be closer

[Lift] Re: Response Optimizations too aggressive

2010-03-07 Thread aw
On Mar 4, 9:50 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Mar 4, 2010 at 9:27 AM, aw anth...@whitford.com wrote: On Mar 4, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote: How about LiftRules.stripComments.default.set( () = !Req.isIE) etc.? This is where

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

2010-03-07 Thread David Pollak
On Sun, Mar 7, 2010 at 12:15 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I think that Jonathan was impolite in expressing his frustration at being misunderstood. First, don't you think that it's ironic that someone who was trying to teach us about marketing was so incapable of expressing

[Lift] Re: IdPK Model boiler-plate

2010-03-07 Thread aw
What's wrong with KeyedMapper's implementation? Well, that was exactly why I was asking the question, Is this implementation for equals and hashCode a good idea? I had gotten this at some point, been using it, and am only questioning it now because if it truly is a good idea, I think it should

Re: [Lift] Activity

2010-03-07 Thread David Pollak
On Sat, Mar 6, 2010 at 7:10 PM, Martin martin.lyn...@gmail.com wrote: Hey, First of all, let me take the complete opposite stance observed from one of the most reason posts from a Rails Junkie. I'm very excited to see a framework that takes the good from so many different projects and

Re: [Lift] Js normalizations

2010-03-07 Thread Heiko Seeberger
On 7 March 2010 19:37, Marius marius.dan...@gmail.com wrote: If you think that this makes sense I'll add a ticket and put it in my backlog. Makes a lot of sense for me. Go for it! Heiko Company: weiglewilczek.com Blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: