Take a look at net.liftweb.mapper.view.Util--there are some methods for iterating fields.
------------------------------------- David Pollak<[email protected]> wrote: On Thu, Aug 20, 2009 at 10:40 AM, Jeppe Nejsum Madsen <[email protected]>wrote: > > David Pollak <[email protected]> writes: > > > [...] > > >> On a related note, why aren't many of the methods/fields in TypedField > >> in BaseMappedField instead? > > > > > > There are only two methods in TypedField and they are both dependent on > the > > FieldType parameter: > > Sorry, I meant MappedField instead of TypedField > > > > > I've moved dbDisplay_? and dbIncludeInForm_? to BaseMappedField. > > Cool, those are the ones I'll need atm. > > > > How about: > > > > def mappedFullFields: Seq[MappedField[Update, _]] = > > Update.mappedFields.flatMap { > > case a: MappedField[Update , _] => Full(a) > > case _ => Empty > > } > > Thanks, I'll try it out. > > Basically, I would assume that I should be able to create something like > CRUDify in my app. Is this a valid assumption? > > Yes. > > /Jeppe > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 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 [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 -~----------~----~----~----~------~----~------~--~---
