• 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: validationFailedWithException not called for relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: validationFailedWithException not called for relationships


  • Subject: Re: validationFailedWithException not called for relationships
  • From: Guido Neitzer <email@hidden>
  • Date: Sat, 3 Jun 2006 13:49:07 +0200

On 03.06.2006, at 7:03 Uhr, Anjo Krank wrote:

Whatever gave you the idea that validationFailedWithException() is called when you saveChanges()? It is only called by validateTakeValeForKeyPath() when it fails, so you need to catch the exception and call it yourself. My guess is that your mandatory property is not shown in the page?

Argl - I was totally brain-dead this morning - sure. You are right. These relationships are not shown on the page, they should get set in the awakeFromInsertion phase in the object itself.


So, because the values don't pass the "takeValueForKey" phase, they don't go through "validateTakeValueFor..." so I don't get a callback for them. *argl*

Sometimes sleep helps ... and sometimes a hard hit from behind. Thanks for the hit.

cug
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >validationFailedWithException not called for relationships (From: Guido Neitzer <email@hidden>)
 >Re: validationFailedWithException not called for relationships (From: Anjo Krank <email@hidden>)

  • Prev by Date: Re: validationFailedWithException not called for relationships
  • Next by Date: Test
  • Previous by thread: Re: validationFailedWithException not called for relationships
  • Next by thread: Test
  • Index(es):
    • Date
    • Thread