On Mon, Feb 8, 2010 at 12:54 PM, Jeppe Nejsum Madsen <[email protected]>wrote:

> Hi,
>
> How can I create a List of MappedField from different Mappers:
>
> I want to create a function like this:
>
> def requiredFields(mfs: List[MappedField[_,Any]])
>

Does this not work?


>
> and call it like this
>
> requiredFields(List(Table1.field1, Table2.field2))
>
> How can I specify that the first type parameter to the MappedField can
> vary?
>
> On a slightly different note: I actually only need the displayName of
> the field, but since this is not in BaseMappedField but MappedField[T] I
> need the above construct. I think it actually makes sense to move all
> the non-typed methods from MappedField to BaseMappedField.
>
> Thoughts?
>
> /Jeppe
>
> --
> 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.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
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