Hello,

are you submitting the form with ajax?
If so, see this thread:

http://groups.google.com/group/liftweb/browse_thread/thread/e25d86a24a5266a2/9fdcf9f2ce022618

In short, check if doing:

xs.map {i => S.error(i.msg) }; 

instead of:

S.error(xs); 

works.

> Hi Jeppe,
> <lift:Msgs showAll="true"> does not work. Always the same result.
> 
> If the form does not contain errors the data are saved well and the
> browser display S.notice("saved") correctly.
> The S.error method returns a List[FieldError]. I receive a List with
> the format of List(Full(tablename_field) : message)
> 
> this is a field of my database class:
> [code]
> object description extends MappedTextarea(this, 255) {
>    override def displayName = "Description"
>    override def validations =  valMinLen(1, S.??("description must
> not be empty")) _ :: super.validations
>  }
> 
> [/code]
> 
> thanks,
> wibble
> 
> On Feb 6, 12:19 pm, Jeppe Nejsum Madsen <je...@ingolfs.dk> wrote:
>> wibblecp <wibbl...@gmail.com> writes:
>>> it does not work even in the case of a single error on the form.
>> 
>>> the result is always a List(Full(entries_code) : Description must not
>>> be empty)
>> 
>> Try adding showAll:
>> 
>> <lift:Msgs showAll="true">
>> 
>> But default, Msgs doesnøt show field-level errors
>> 
>> /Jeppe
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 

-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu




-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to