You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Gilday <ma...@imap.cc> on 2007/11/27 17:12:24 UTC

Unnecessary onsubmit

We are using the validaiton interceptor but not client side javascript
validation.  However we are still seeing lots of
onsubmit="customOnsubmit_registration(); return true;" appearing in the
views.  On form submission you get a js error as the function does not
exist.  Why is this appearing and is there a simple way to prevent it?

Thanks,
Martin.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Unnecessary onsubmit

Posted by Martin Gilday <ma...@imap.cc>.
Sorry ignore.  Someone had been using a theme written for WebWork which
had this customOnsubmit in.  It seems to have changed in the new
form.ftl in 2.0.11 to be simply "return true;", which is better.


----- Original message -----
From: "Martin Gilday" <ma...@imap.cc>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Tue, 27 Nov 2007 16:29:11 +0000
Subject: Re: Unnecessary onsubmit

I've not used a validation attribute.  An example:
<@s.form namespace="/" action="registration!save" method="post">

The stack just has the standard interceptor ref <interceptor-ref
name="validation">
Is this an old issue, I get the same alert in JIRA all the time
(WebWork?)

----- Original message -----
From: "Dave Newton" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Tue, 27 Nov 2007 08:16:42 -0800 (PST)
Subject: Re: Unnecessary onsubmit

With the regular <s:form...> tag without the
"validation" attribute set?!

d.

--- Martin Gilday <ma...@imap.cc> wrote:

> We are using the validaiton interceptor but not
> client side javascript
> validation.  However we are still seeing lots of
> onsubmit="customOnsubmit_registration(); return
> true;" appearing in the
> views.  On form submission you get a js error as the
> function does not
> exist.  Why is this appearing and is there a simple
> way to prevent it?
> 
> Thanks,
> Martin.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Unnecessary onsubmit

Posted by Martin Gilday <ma...@imap.cc>.
I've not used a validation attribute.  An example:
<@s.form namespace="/" action="registration!save" method="post">

The stack just has the standard interceptor ref <interceptor-ref
name="validation">
Is this an old issue, I get the same alert in JIRA all the time
(WebWork?)

----- Original message -----
From: "Dave Newton" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Tue, 27 Nov 2007 08:16:42 -0800 (PST)
Subject: Re: Unnecessary onsubmit

With the regular <s:form...> tag without the
"validation" attribute set?!

d.

--- Martin Gilday <ma...@imap.cc> wrote:

> We are using the validaiton interceptor but not
> client side javascript
> validation.  However we are still seeing lots of
> onsubmit="customOnsubmit_registration(); return
> true;" appearing in the
> views.  On form submission you get a js error as the
> function does not
> exist.  Why is this appearing and is there a simple
> way to prevent it?
> 
> Thanks,
> Martin.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Unnecessary onsubmit

Posted by Dave Newton <ne...@yahoo.com>.
With the regular <s:form...> tag without the
"validation" attribute set?!

d.

--- Martin Gilday <ma...@imap.cc> wrote:

> We are using the validaiton interceptor but not
> client side javascript
> validation.  However we are still seeing lots of
> onsubmit="customOnsubmit_registration(); return
> true;" appearing in the
> views.  On form submission you get a js error as the
> function does not
> exist.  Why is this appearing and is there a simple
> way to prevent it?
> 
> Thanks,
> Martin.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org