Re: Validating WOUpload form element before submitting
Re: Validating WOUpload form element before submitting
- Subject: Re: Validating WOUpload form element before submitting
- From: Randall Perry <email@hidden>
- Date: Wed, 21 Apr 2004 15:14:00 -0400
on 4/20/04 1:09 PM, Arturo Perez at email@hidden wrote:
> Randall Perry wrote:
>
>> Seems like a MAJOR omission to me to have a WOForm component with no methods
>> to do form validation other than Javascript.
>>
>
> That's not literally true. It's just that what you want to do isn't
> possible with the HTTP protocol as defined. IIRC, you want to send the
> filename for an upload before sending the file all as part of a file
> upload so that you can validate the filename.
>
> You should investigate how WO does validation before making statements
> such as the above: validateForSave, validateForInsert,
> validateTakeValueForKey, validationFailedWithException.
I was thought the validation that was available was for EO Objects only.
> My beef with WO and its validation is that it doesn't have the nice
> Struts feature (only nicety I've seen, so far) of automatically
> generating JavaScript validation for you.
Actually, that's kinda what I meant...WO generating javascript validation as
part of the component.
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
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.