On Apr 14, 2004, at 5:35 PM, Joerg Heinicke wrote:


On 15.04.2004 02:11, Mark Lundquist wrote:

[1] The problem I'm having now occurs in this scenario:

1 - add a row, but don't fill in the text field or check the delete box;
2 - submit the form;
3 - form is redisplayed with a validation error;
4 - now check the delete box and resubmit.


In this scenario, my validation script above never fires! So the form is just redisplayed again with the validation error.
I should have said, it doesn't fire on step (4). It does on step (2).

IIUC you can see the same behaviour in the form1 sample. Though an fd:action does no longer validation it also does not remove already existing validation errors. This happens only for the flow script variant. The action variant works in the expected(?) way. And this shows that it is completely unrelated to your optional required widget.


Can you confirm this? Is this what you mean/describe?

I don't think it's related. My problem has nothing to do with <fd:action>. I have:


• a submit widget;
• a repeater containing a text widget and a booleanfield
• an <fd:validate/javascript> snippet in the repeater definition; this does the only validation in my form


Once the validation script has posted a validation error, then, the next time I submit, the validation script fires only if I have changed the text widget. If I only change the checkbox, then the validation script does not fire! This breaks my form, because the validation script is supposed to clear the validation error on the text widget if the checkbox is checked.

----
BTW, while I believe it's unrelated, you mentioned the <fd:action> behavior in flow vs. form actions as shown in the form1 sample. What I'm seeing there (fresh CVS HEAD) is:


• In the action version, activating an action widget clears previous validation errors and does not cause anything to be revalidated;

• In the flow version, I see the following behavior (understand this as an "as if" description): validation seems to be triggered when the action widget is activated; previous validation errors are cleared for widgets that now validate successfully, but no new validation errors are posted.

From what I remember of the implementation, I don't really understand why the flow version would behave as it does, but IMHO that is exactly the correct behavior! The action version seems slightly broken — it shouldn't clear validation errors like it does.

But anyway, as I said I don't think this has anything to do with my repeater validation problem...

mark


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to