[Lift] Re: New mapper class: MappedEnumString

2009-06-26 Thread Jeppe Nejsum Madsen
Oliver Lambert writes: [...] > No this isn't what I'm suggesting, I don't think MappedEnum should be made > flexible. I know this wasn't your suggestion, but any reason not to make MappedEnum flexible (if possible and backwards compatibility could be maintained) ? > I was thinking perhaps y

[Lift] Re: New mapper class: MappedEnumString

2009-06-25 Thread Oliver Lambert
On Thu, Jun 25, 2009 at 10:49 PM, Jeppe Nejsum Madsen wrote: > > On Thu, Jun 25, 2009 at 1:12 AM, Oliver Lambert > wrote: > > > > Looks very nice. > > > > One thing I'm wondering, what if I wanted the displayed value outside of > the mapper, such as TestTypes.Item1.displayValue. Would you use an

[Lift] Re: New mapper class: MappedEnumString

2009-06-25 Thread Jeppe Nejsum Madsen
On Thu, Jun 25, 2009 at 1:12 AM, Oliver Lambert wrote: > > Looks very nice. > > One thing I'm wondering, what if I wanted the displayed value outside of the > mapper, such as TestTypes.Item1.displayValue. Would you use an implicit > conversion to provide this or is the > display value conceptua

[Lift] Re: New mapper class: MappedEnumString

2009-06-24 Thread Oliver Lambert
Looks very nice. One thing I'm wondering, what if I wanted the displayed value outside of the mapper, such as TestTypes.Item1.displayValue. Would you use an implicit conversion to provide this or is the display value conceptually always part of a mapper object. I have a rough implementation calle