pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

Grid: render error messages #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When the validation for a Grid cell fails, and the form is redisplayed the
error message is either:
  - displayed for all rows, even the valid ones, if the error occurred in
the last row
  - not displayed at all

I would prefer the error message to be only displayed in the invalid row(s).

What worked for me was to adapt the template such as that the error is
reloaded from Grid.errors for each row that is rendered instead of
accessing Grid.render_fields (see attachment).

Version 1.2.3

Cheers

Stefani

Original issue reported on code.google.com by stefani....@gmail.com on 15 Sep 2009 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by gael.pas...@gmail.com on 16 Sep 2009 at 2:45

GoogleCodeExporter commented 9 years ago
fixed, thanks. I've added Grid.get_errors(row)

Original comment by gael.pas...@gmail.com on 18 Sep 2009 at 1:40