I use it to stuff the info from each exception into an array of
dictionaries. Then I have a reusable component that displays the dicts
on the page listing all the bogus things that user tried to do on that
request... this was null and shouldn't be, your age is negative, you
can't have your sister be your mother, etc...
Patrick Robinson wrote:
>
> WOComponent has a new method in WO4,
>
> -validationFailedWithException:value:keyPath:
>
> It gets called during the takeValues phase. Looks like it gets called
> once for each property that fails validation. I'm wondering how this
> was intended to be used? I can imagine having it set some variables
> that would control the behavior of an action method (e.g. set some
> "validation failed" messages and maybe redisplay the page vs. calling
> tryToSaveChanges and returning to another page), but I'm wondering
> whether there's a more elegant usage that I'm just not thinking of...?
>
> How did people deal with EO validation results (in WO) prior to WO4?
>
> Thanks,
>
> ---
> Patrick Robinson
> Extension Information Systems, Virginia Tech
> [EMAIL PROTECTED]