EOF not calling attribute validation methods
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.