Re: validationFailedWithException not called for relationships
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