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 [email protected].
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.

Reply via email to