Re: model.validateKey intercepted on null?

2009-01-30 Thread Timo Hoepfner
If this is only to get localized messages, then you just need to setup ERXLocalizer properly and the messages are automagically localized by Wonder: e.g. in your Properties: er.extensions.ERXLocalizer.isLocalizationEnabled = true er.extensions.ERXLocalizer.frameworkSearchPath = (app,ERExtens

Re: model.validateKey intercepted on null?

2009-01-30 Thread Kieran Kelleher
FWIW, the way I handle this is: 1) Set the EOModel to Allow Null. 2) Set the database to NOT NULL which guarantees not saving nulls. 3) Handle the nulls in your own validate methods as you wish to do. - this works. HTH, Kieran On Jan 30, 2009, at 9:38 AM, WebObjects - Anazys wrote: Hi all,

Re: model.validateKey intercepted on null?

2009-01-30 Thread WebObjects - Anazys
Hi all, I have the same problem that describes in this old mail : a NullPropertyException (from ERXValidationException) is thrown instead of using my validateKey methods. Has somebody found a solution to that without changing the model ? Thanks. Cedric Le 2 juin 08 à 17:35, Rams a écrit :

model.validateKey intercepted on null?

2008-06-02 Thread Rams
Hi everyone, I have a model object using the WonderEntity template and my validateKey methods are being intercepted higher up with a NullPropertyException (ERXValidationException). I'd like to handle the null values myself and throw a localized exception message, but my validateKey metho