Re: [Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-08 Thread Adam Warski
Hello, If you are using an Ajax form lift:msgs showAll=true/ did not show the messages associated with ID's ... messages coming from FieldError. This is a defect I fixed about a week ago. Please use the latest lift build. Ah, I didn't realize that this ticket got closed. Anyway, I checked

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-08 Thread wibblecp
Thanks Timothy for your advice. On Feb 6, 3:16 pm, Timothy Perrett timo...@getintheloop.eu wrote: wow, thats some ugly code man. Why dont you try something like: def validateAndSave {   currentEntry.validate match {     case Nil =       currentEntry.save       S.notice(currentEntry.title +

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-08 Thread wibblecp
Hi Marius, I am using version 2.0-M1. Now it works. This topic could be considered closed for me. Thanks to all for your replies. Regards, wibble. On Feb 6, 6:32 pm, Marius marius.dan...@gmail.com wrote: What Lift version are you using? If you are using an Ajax form lift:msgs showAll=true/

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread Marius
Are you using in your html page lift:msgs/ ? Br's, Marius On Feb 6, 10:45 am, wibblecp wibbl...@gmail.com wrote: Hi all, I'm newbie with lifts and I am having a little problem. I am using Lift2.0-M1. I have a snippet that runs the rescue of a model. The method is called when the submit the

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread wibblecp
Hi Marius, thanks for your raply I am using it in my html page as: [code] lift:snippet type=msgs lift:error_classflash_error/lift:error_class lift:warning_classerrorExplanation/lift:warning_class lift:notice_classflash_notice/lift:notice_class

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread wibblecp
Using lift:msgs/ I receive the same result. S.notice works fine in the browser but S.error with a list of errors does not work. any advice? thanks, wibble. On Feb 6, 10:16 am, wibblecp wibbl...@gmail.com wrote: Hi Marius, thanks for your raply I am using it in my html page as: [code]      

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread wibblecp
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) thanks, wibble. On Feb 6, 11:00 am, wibblecp wibbl...@gmail.com wrote: Using lift:msgs/ I receive the same result. S.notice works fine in the

Re: [Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread Jeppe Nejsum Madsen
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

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread wibblecp
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) :

Re: [Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread Adam Warski
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

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread wibblecp
hi Adam, thank you. It is exactly what I done def validateAndSave (): Unit = currentEntry.validate match { case Nil = currentEntry.save ; S.notice(currentEntry.title + SAVED!) case x = { x map { (e:FieldError) = S.error(e.msg) } } } have a nice day. wibble On Feb 6, 2:35 pm,

Re: [Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread Timothy Perrett
wow, thats some ugly code man. Why dont you try something like: def validateAndSave { currentEntry.validate match { case Nil = currentEntry.save S.notice(currentEntry.title + SAVED!) case List(fielderror) = S.error(fielderror.msg) case _ = } } I havent tested it of

[Lift] Re: Error messages are not displayed - 2.0-M1

2010-02-06 Thread Marius
What Lift version are you using? If you are using an Ajax form lift:msgs showAll=true/ did not show the messages associated with ID's ... messages coming from FieldError. This is a defect I fixed about a week ago. Please use the latest lift build. If you just want to render all messages