Hi Paul,
After reading this a few times it is still not clear to me what the issue is but I’ll try to say something helpful.
“takeValuesFromRequest()” does try to do some validation if it can figure out the key paths and figure out a “validate()” method to call. Obviously if it is just a method on the page it cannot “discover” validation methods to call because it doesn’t know the underlying logic or how to get to the EO that is covered by the custom WOComponent method. This type of “automatic” validation only can happen when you are setting a value hanging from an EO listed directly in the .wod
“editingContext.saveChanges()” also calls these same validation methods.
“woComponent.validationFailedWithException()” is an important method to implement to catch a bunch of the exceptions during takeValuesFromRequest() so you can show them all to the user.
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
|