Re: [Lift] MapperRules.nameToDisplayName?

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:27 AM, Jeppe Nejsum Madsen wrote: > David Pollak writes: > > > If the mechanism was something more along the lines of: > > > > display name calculator: (Mapper[_], Locale, String) => Box[String] // we > > could use Lift's factory mechanism here > > I'm completely blank a

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
If the mechanism was something more along the lines of: display name calculator: (Mapper[_], Locale, String) => Box[String] // we could use Lift's factory mechanism here Then you have lots of room to keep the current implementation as the default if there is no actual name calculated. Further, t

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows 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 you have better solut

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 12:54 PM, Jeppe Nejsum Madsen wrote: > Jim Barrows writes: > > > On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen >wrote: > > > >> Hi, > >> > >> In the interest of cutting boilerplate from mapped objects, I would > >> like to get the display name from a property file. >

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
Jim Barrows writes: > On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote: > >> 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 file boilerplate? The

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak writes: > On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows wrote: > >> >> On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote: >> >>> Hi, >>> >>> In the interest of cutting boilerplate from mapped objects, I would >>> like to get the display name from a property file. >>> >> >> So

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 8:27 AM, Jim Barrows wrote: > > On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote: > >> 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

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen wrote: > 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 file boilerplate? The boilerplate has to go somewhere,

[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 al