|
[
Permlink
| « Hide
]
Andrew Perepelytsya added a comment - 13/May/08 11:42 AM
Mark, only 1 admin screen was missing the confirmation message (see the linked issue).
It'd be great if we could just add this into AbstractForm so all forms get validation. We could setup forms like so:
addField("Description", descriptionWidget, validator) or something like that. I doubt that would work for non-simple cases, when relations between fields have to be taken into account. For this matter, an additional generic validate() method would probably be needed.
I like the idea of adding abstract void validate(); to AbstractForm and having each subclass override it. I can't imagine a form not needing some kind of validation.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||