hoscanoa / struts2-bootstrap

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

Client validation doesn't work on IE9, IE8 & IE7 when form contains <s:file> component #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Add <s:file> component to Client Validation application included in Struts 
Bootstrap Plugin Showcase. This file component doesn't have to be validated (in 
other words, there doesn't have to be any validation rule concerning the file 
component for the incorrect behaviour to occur).
2. Fill the form in a way that won't pass client-side validation.
2. Run application on Firefox or Chrome- everything behaves as expected.
3. Run application on Internet Explorer (ver. 9 or previous)- instead of one 
ajax call, two HTTP calls are always made- one ajax and one non-ajax.

What is the expected output? What do you see instead?

Expected: A single post request of type 'application/json' when form contains 
ajax-validation errors.

Instead: Two requests - one of type 'application/json' and one of type 
'text/html' which triggers server-side validation. This bad behaviour happens 
only on Internet Explorer (verified on ver. 9, 8 and 7); on Chrome and Firefox 
everything works as described in expected output.

What version of the product are you using? On what operating system?

Problem occurs using any of following combination of versions:
- struts: 2.3.4.1 or 2.3.7
- jquery-plugin: 3.3.3 or 3.4.0
- bootstrap-plugin: 1.5.1 or 1.5.2
- OS: Windows 7

Please provide any additional information below.

n/a

Original issue reported on code.google.com by michal...@gmail.com on 27 Nov 2012 at 8:00