• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] validation and "sticky invalid values"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Dire web service help...
  • Next by Date: [Q] overriding appendToResponse(...); can I kill the .wo?
  • Previous by thread: Re: [Q] validation and "sticky invalid values"
  • Next by thread: Question regarding defaultEditingContext with WebServices
  • Index(es):
    • Date
    • Thread