When I saw this answer, I was really hoping it would work. Unfortunately, Gender.elements.toList.map(v => (v, v.toString)) gives me List((a.Gender(0),a.Gender(0)), (a.Gender(1),a.Gender(1)))
On Thu, Sep 18, 2008 at 12:56 PM, David Pollak < [EMAIL PROTECTED]> wrote: > var g: Can[Gender] = Empty > > SHtml.selectObj(Gender.elements.toList.map(v => (v, v.toString)), g, v => g > = Full(v)) > > > On Wed, Sep 17, 2008 at 7:33 PM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > >> >> I'm using an enumeration for Gender: >> >> @serializable >> object Gender extends Enumeration { >> type Gender = Value >> val Male, Female = Value >> } >> >> import Gender._ >> >> How do I use this in bind? And is there an easy way to create a drop >> down list with blank, Male, and Female options? >> >> Thanks! >> >> Chas. >> >> >> > > > -- > Lift, the simply functional web framework http://liftweb.net > Collaborative Task Management http://much4.us > Follow me: http://twitter.com/dpp > Git some: http://github.com/dpp > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---