. means a member of a value.
# means a member of a type.

On Wed, Feb 10, 2010 at 8:32 PM, Strom <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> 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 [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