Hi Chuck,

Yeah, it throws the validation error.  I've gotten a step closer to figuring it 
out.

That object has an ERAttachment relationship.  In the form that I use to the 
insert the object I have a ERAttachmentUpload component for attaching the image 
to the record.

If I remove the ERAttachmentUpload from the form it inserts properly.

Not sure what that's telling me.

Thanks,

Johnny Miller
[email protected]
www.kahalawai.com

On Jul 17, 2011, at 10:29 AM, Chuck Hill wrote:

> An EOF validation error or a database error?  What does the error say?  What 
> is the stack trace?
> 
> 
> On 2011-07-16, at 2:40 PM, Johnny Miller wrote:
> 
>> Hi,
>> 
>> I don't think I'm doing anything unusual (or anything I have don't a lot in 
>> the past at least).  I have an entity that uses single table inheritance and 
>> I'm getting a validation error when attempting to save a new object that I 
>> really don't understand.
>> 
>> Here is my validation method:
>> 
>>      public String validateTitle(String value) throws ERXValidationException 
>> {
>>              System.out.println("Value for title: " + title());
>>              System.out.println("Value for value: " + value);
>>              if(ERXStringUtilities.stringIsNullOrEmpty(value)) {
>>                      throw 
>> ERXValidationFactory.defaultFactory().createException(this, TITLE_KEY, 
>> value, ERXValidationException.NullPropertyException);
>>              }
>> 
>>              return value;
>>      }
>> 
>> Here is the output in the console:
>> 
>> Value for title: test
>> Value for value: null
>> 
>> Does that ring any bells for somebody (please)?
>> 
>> Johnny Miller
>> [email protected]
>> www.kahalawai.com
>> 
>> _______________________________________________
>> 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/chill%40global-village.net
>> 
>> This email sent to [email protected]
> 
> -- 
> Chuck Hill             Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.    
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 

 _______________________________________________
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