Re: Validator: Unwanted Client side AND Server side validation
Well i have to set validate false of the action in the struts-config.xml, then i only have client side validation without submitting, but then i have to call the .validate Method in the action to do the server-side validation, if i disable JavaScript. Any more ideas to this problem ? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 12:49 PM Subject: Validator: Unwanted Client side AND Server side validation > Hi, > > When using client side validation the form is submitted regardless of Javascript > validation check occuring (After clicking OK on the Javascript popup warning > following an error the form get submitted anyway). > > I used validation already without this behaviour to occur ... I must be > misconfiguring something but cannot find out what it is. Validation works as > expected Server side. > > I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0. > > Any idea welcome, Patrick > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validator: Unwanted Client side AND Server side validation
Make sure you you have the return statement in the onsubmit handler. Otherwise it will always submit the form. It needs to look like this: onsubmit="return validateFooForm(this)" If that's not the problem, you may be trying to validate using an incorrect field name. That's happened to me a few times. -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 5:50 AM To: [EMAIL PROTECTED] Subject: Validator: Unwanted Client side AND Server side validation Hi, When using client side validation the form is submitted regardless of Javascript validation check occuring (After clicking OK on the Javascript popup warning following an error the form get submitted anyway). I used validation already without this behaviour to occur ... I must be misconfiguring something but cannot find out what it is. Validation works as expected Server side. I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0. Any idea welcome, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator: Unwanted Client side AND Server side validation
Hi, When using client side validation the form is submitted regardless of Javascript validation check occuring (After clicking OK on the Javascript popup warning following an error the form get submitted anyway). I used validation already without this behaviour to occur ... I must be misconfiguring something but cannot find out what it is. Validation works as expected Server side. I am using Struts 1.1 with the bundled Validator together with Scaffold 1_0. Any idea welcome, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]