|
|
SimpleFormController onSubmit not getting called
mand.MyFormquot;/gt; lt;property name=quot;formViewquot; value=quot;tileEditquot;/gt; lt;property name=quot;successViewquot; value=quot;tileViewquot;/gt; lt;/beangt;
In my JSP here is the form and its contents. The onclick javascript call creates a string based on some fields and sets the value to the quot;submitStringquot; hidden input.Code:
lt;form method=quot;postquot;gt;
lt;spring:bind path=quot;myCommand.myStringquot;gt;
lt;input type=quot;hiddenquot; name=quot;submitStringquot; value=quot;quot; id=quot;submitStringquot;/gt;
lt;/spring:bindgt;
lt;input type=quot;submitquot; value=quot;Generatequot; onclick=quot;constructSubmitString();quot;gt;
lt;/formgt;
Is there an issue with using Javascript here? Thanks in advance.
-Xavier
Just to follow up. My issue was that I was declaring a form inside of a form. So the nested form tags seemed to be causing the problem.
Cheers,
-Xavier |
|