• 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
EOF not calling attribute validation methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOF not calling attribute validation methods


  • Subject: EOF not calling attribute validation methods
  • From: Greg Hulands <email@hidden>
  • Date: Mon, 19 Jan 2004 09:20:20 +1000

Hi,
When I am trying to save an EO it does not seem to calling the
validation methods for the attributes.

public Object validateTitle(String value) throws
NSValidation.ValidationException {
		if (value == null || value.length() == 0)
			throw new NSValidation.ValidationException("You must have a title.");

		return value;
	}

I want to do this for each attribute which is not null, otherwise it
just returns a message of the attribute of title in entity suchandsuch
in not allowed to be null. Is there any thing that needs to be "turned
on" to activate this. From the EOCustomObject docs it automatically
calls these methods if they exist.

Any clues?

Greg
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: EOF not calling attribute validation methods
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Re: Switching J2EE integration style after project creation
  • Next by Date: Re: EOF not calling attribute validation methods
  • Previous by thread: Re: Switching J2EE integration style after project creation
  • Next by thread: Re: EOF not calling attribute validation methods
  • Index(es):
    • Date
    • Thread