Le 2011-10-04 à 08:30, Marius Soutier a écrit :

> Stab in the dark - the call to super?

Tried that too, didn't change anything. super will call 
session.validationFailedWithException, which will call 
application.validationFailedWithException

I'm doing something similar to the SecretPal example from Wonder, so I'm really 
lost in the dark.

> On 04.10.2011, at 14:23, Pascal Robert wrote:
> 
>> I guess working with REST and calendars made my brain to forget how to do 
>> things with stateful components... I need to trap validation exceptions when 
>> required attributes are missing and ec.saveChanges() is called, so in my 
>> superclass for my components, I did:
>> 
>>   public void validationFailedWithException(Throwable exception, Object 
>> value, String keyPath) {
>>     super.validationFailedWithException(exception, value, keyPath);
>>     ((Session)session()).addError(exception.getMessage());
>>   }
>> 
>> And I made a component to display the errors if session.errors() is not 
>> empty. Problem is: when saveChanges is called, I'm getting the generic 
>> exceptions page instead of my page with the ErrorsDisplay component. With 
>> the debugger, I do see that I go into validationFailedWithException, so I'm 
>> a bit lost of why I'm getting the generic exceptions page.
>> 
>> What I'm doing wrong?
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/m.soutier%40starhealthcare.info
>> 
>> This email sent to [email protected]
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to