[Lift] Errors not shown after AJAX form submit

2010-01-04 Thread Adam Warski
Hello, investigating further making the tutorial form submittable with ajax, I found some weird behavior; I'm using 1.1-M8. It seems that when the form is submitted with ajax, and there are form validation errors, the error is not shown. However, the notices work fine. So: - S.notice(Added

Re: [Lift] Errors not shown after AJAX form submit

2010-01-04 Thread Ross Mellgren
S.error(NodeSeq) and S.error(List[FieldError]) differ in that the latter registers errors against particular fields, and the former is a page-wide error. The latter is more like S.error(String, NodeSeq). Do you have Msg snippets for each field, like this? ... field ... lift:msg

Re: [Lift] Errors not shown after AJAX form submit

2010-01-04 Thread Adam Warski
Hello, Ah, I didn't spot this. I only have: lift:Msgs showAll=true/ which would suggest that it should show all errors. And anyway, why does it work then with normal form submit, and doesn't with ajax form submit? Adam On Jan 4, 2010, at 9:14 PM, Ross Mellgren wrote: S.error(NodeSeq) and