Re: Help needed with ERDEditHTML component
Re: Help needed with ERDEditHTML component
- Subject: Re: Help needed with ERDEditHTML component
- From: Ramsey Gurley <email@hidden>
- Date: Tue, 05 Jul 2011 10:14:43 -0700
Hi Daniel,
I think it should still be validating in validateForSave() so that when you click the save button, you should still get the error dialog demanding a value for the field. Is it failing to do that?
Ramsey
On Jul 5, 2011, at 9:55 AM, Daniel Mejia wrote:
> Ramsey,
>
> I expect that behavior if the field is not marked as required in the EO Model and in the database is defined as not null, but if it is marked as not null in the EO model why is not validated? This only happened when the field is using the ERDEditHTML component, if I left the field with the default component it is validated as expected.
>
> Regards,
>
> Daniel.
>
>
> On 05/07/2011, at 11:39, Ramsey Gurley wrote:
>
>>
>> On Jul 4, 2011, at 9:16 AM, Daniel Mejia wrote:
>>
>>> Hi all,
>>>
>>> I have a very simple D2W edit form with some fields, some of them are required in the model and are correctly validated, the problem happen when I use the ERDEditHTMl component for one of those fields that are required. The field is never validated and if the user left the field blank the program aborts with problems because the field is not null. How can I make to validate the field using the ERDEditHTML?
>>>
>>> Regards,
>>>
>>> Daniel.
>>
>> When you say "aborts with problems" do you mean it throws a validation error? That would be the behavior I would expect.
>>
>> Ramsey
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden