Have you tried forcing the type parameters in your MappedEnum declaration ? Like this:
object state extends MappedEnum[Address, States.type](this, States) On Thu, Feb 11, 2010 at 6:30 AM, edgarchan <edgarchancarri...@gmail.com>wrote: > and it seems we are getting the type and not the value > try > > Full(States(address.state.toInt)) > > > > > > On Feb 10, 7:32 pm, Strom <strommo...@gmail.com> wrote: > > What's the difference between Enumeration.Value and Enumeration#Value? > > > > I'm getting a type mismatch error: > > [INFO] found : com.test.States#Value > > [INFO] required: com.test.States.Value > > > > When trying to set the Enumeration via a form. Basically, I have a > > mapper object, Address, that has a MappedEnum(this, States) where > > States is my defined enumeration of US states. > > > > The form method is: > > "state" -> SHtml.selectObj[States.Value]( > > States.elements.toList.map(v => (v,v.toString)), > > Full(address.state) /*seems to default to first value in > > enum if unassigned*/, > > selected => address.state(selected)) > > > > Thanks, > > Strom > > -- > 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<liftweb%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- 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 http://groups.google.com/group/liftweb?hl=en.