Re: [Q] validation and "sticky invalid values"
Re: [Q] validation and "sticky invalid values"
- Subject: Re: [Q] validation and "sticky invalid values"
- From: Andrew Lindesay <email@hidden>
- Date: Tue, 1 Jul 2003 16:52:52 +1200
The only way I can think of to do this is to have something sit
between the form and the EO.
^^^ This is what I had origionally thought of. FYI: I've refined my
validation handling code somewhat and this technique seems to have
proved successful in initial tests.
I have overriden "validationFailedWithException(...)" to get the
incoming invalid values, am storing them in the component and finally,
I have overriden "valueForKeyPath(...)" to give back the invalid data
again if I had a broken value for that key off the EO. Thus the EO's
never get to see the bad data, but the users do.
So, thanks for the suggestions.
Regards;
___
Andrew Lindesay
http://www.lindesay.co.nz/
+64 21 47 0929
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.