[Lift] Re: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-15 Thread Jeppe Nejsum Madsen
On Thu, Oct 15, 2009 at 5:05 PM, David Pollak wrote: [...] >> I would think that this could have a better default value, e.g. the same >> of the mapped field for instance > > Yep.  Please open a ticket. Done. http://github.com/dpp/liftweb/issues/#issue/106 /Jeppe --~--~-~--~~-

[Lift] Re: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-15 Thread David Pollak
On Thu, Oct 15, 2009 at 2:48 AM, Jeppe Nejsum Madsen wrote: > > sunanda writes: > > > Hi David, > > Thanks for your reply. > > I need to find out the fieldnames that causes the error from the list > > of FieldErrors resulted from the validation. > > But I find all the FieldIdentifier names as "

[Lift] Re: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-15 Thread Jeppe Nejsum Madsen
sunanda writes: > Hi David, > Thanks for your reply. > I need to find out the fieldnames that causes the error from the list > of FieldErrors resulted from the validation. > But I find all the FieldIdentifier names as "Empty". Looking at the code for e.g. MappedInt, it seems like it is not b

[Lift] Re: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-14 Thread sunanda
Hi David, Thanks for your reply. I need to find out the fieldnames that causes the error from the list of FieldErrors resulted from the validation. But I find all the FieldIdentifier names as "Empty". Below is the sample code I have used for the validations. object colpos extends MappedInt(thi

[Lift] Re: Extracting FieldIdentifer names from a list of FieldErrors

2009-10-14 Thread David Pollak
val fieldErrors: List[FieldError] = ...val fieldNames: List[String] = fieldErrors.flatMap(_.field) On Tue, Oct 13, 2009 at 10:44 PM, sunanda wrote: > > Hi, > I need to extract the FieldIdentifer names from a list of > FieldErrors. Can anyone suggest me how to achieve this. > > > -- Lift, th