[aida] Post Tutorial comments - validation

Herbert König herbertkoenig at gmx.net
Thu Apr 21 05:24:00 CEST 2011


Hi Elliot,


EF> others.  Ideally, you'd want to have an all or nothing approach.  Is
EF> there a way to do total form validation before the fields are
EF> committed to the domain model?  perhaps some non-javascript way?

while I accept the arguments on validation of Friedrich and see their
usefulness, just let me state two things:

- Ajax was a move away from whole form posts for good reasons. But I'm
sure you can still make every action a Form post in Aida.

- In my own application the web interface always works on a copy of
the model object which is only committed when it's in proper state
regarding the whole domain model. For example an appointment may
itself be in a valid state but may block the necessary travel time to
the next appointment in the calendar.

So for me validation is not a matter of the web interface.

Again, I'm not arguing against Friedrich's proposals on validation,
maybe you even want to scan the list archives for those validation
discussions. I just describe the way I'm doing it today.


Cheers,

Herbert                            mailto:herbertkoenig at gmx.net



More information about the Aida mailing list