• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
validation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

validation question


  • Subject: validation question
  • From: Michael Gargano <email@hidden>
  • Date: Thu, 04 Aug 2011 14:45:52 -0700
  • Acceptlanguage: en-US
  • Thread-topic: validation question

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: validation question
      • From: Ramsey Gurley <email@hidden>
  • Prev by Date: Re: setUser() vs. setUserRelationship()
  • Next by Date: Re: validation question
  • Previous by thread: Re: "You backtracked too far" error after closing AjaxModalDialog and clicking on a link on the page
  • Next by thread: Re: validation question
  • Index(es):
    • Date
    • Thread