Re: Form Weird Problem..
Re: Form Weird Problem..
- Subject: Re: Form Weird Problem..
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 6 Apr 2004 15:19:30 -0500
My guess: You have bound that form input directly to an EO attribute.
What you are inputting is failing validation for the EO/entity. It's
possible the entity is defined in a wrong way, such that almost
anything you enter will fail validation. It's also possible that the
attribute is a numeric attribute, and you have not bound any
formatters on the input---that would result in anything you enter
(being a string, and not having a formatter to convert it to a
numeric) will fail validation.
The default thing that happens when a form-entered value fails EO
validation like this is---it's just thrown out, with no warning.
This is often rather annoying. There are ways to customize and alter
this behavior---there was a good article on WOComponent validation
techniques, if I'm remembering right it's by Malcolm Crawford and on
the omnigroup.com website somewhere.
Hope this helps,
--Jonathan
At 2:59 PM -0500 4/6/04, James Cicenia wrote:
Hello -
I have been trying to debug this for 4 hours now..
I have a form... very much like another form that works perfectly,
however, this form will not accept my
entry for a number... all the other elements in the form get set,
but this one doesn't. It is nested within
the form as the fields above and below work. When I print out the
value of entry before saving, it is
not changed! Any thoughts on how I can debug this problem?
Thanks,
James Cicenia
_______________________________________________
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.
_______________________________________________
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.