hungsama / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Struts submit button not working beside Struts Jquery button #931

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Look and test the attached jsp file with a simple action.
2. If you click on the back button, it is not submitting... do nothing!
3. If you delete <sj:submit targets attribute then the simple struts submit 
button will work.

What is the expected output? What do you see instead?
The simple struts submit button should work.

Which struts2 version?
2.3.7

Which struts2-jquery plugin version?
3.4.0, 3.5.0

Please provide any additional information below.

Original issue reported on code.google.com by nagy.romeo on 17 Dec 2012 at 3:09

Attachments:

GoogleCodeExporter commented 9 years ago
It works fine in struts2-jquery plugin 3.3.3

Original comment by nagy.romeo on 17 Dec 2012 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 Jan 2013 at 9:57

GoogleCodeExporter commented 9 years ago
Issue 934 has been merged into this issue.

Original comment by johgep on 13 Jan 2013 at 10:03

GoogleCodeExporter commented 9 years ago
Problem here is the e.PreventDefault() to prevent a normal submit on press 
enter inside of an form.

See:
http://code.google.com/p/struts2-jquery/source/browse/trunk/struts2-jquery-plugi
n/src/main/resources/template/js/struts2/jquery.struts2.js#947

If I remove this lines a form can be submitted without ajax simply when hit the 
enter button inside of an textfield. Any Ideas how to solve this?

Original comment by johgep on 26 Sep 2013 at 5:43