Hi everyone,

        I have an EO with let's say 3 attributes.

        Name  (String, not nullable, 255 chars)
        short desc (String, not nullable, 255 chars)
        long desc (String, nullable, 2000 chars)

in the ui, name and short desc are attached to wotextfields and long desc is a 
wotext

if i put more than 2000 chars in the long desc text box and leave the other two 
fields blank, i get all three validation errors (name and short desc cannot be 
null and long desc is over 2000 chars)
just as expected.

however....
        if i fill in name and short desc properly and put more than 2000 chars 
in the long desc text box the EO gets saved to the DB.  upon inspection of the 
record, the long desc attribute is just nullified.  i see the exception being 
thrown in validateValueForKey, but since all the validations get called twice, 
it looks like the first time around the exception is thrown, swallowed by 
something that then nulls that value, and on the second time around since that 
attribute is nullable, it's just stores it straight to the DB.

it looks like others have had similar problems on the mailing list in the past, 
i couldn't seem to find a resolution though.

Thanks.
-Mike


 _______________________________________________
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