Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.1.0.RC1
-
Fix Version/s: EE-4.1.0.GA, 4.2.BETA, 4.2
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces 4 trunk r48822, Tomcat 8, IE 8
-
Assignee Priority:P1
-
Support Case References:
Description
If you upload a file after triggering required validation a popup js error is seen. This is not an issue with 4.1.1 libs.
Message: Invalid argument.
Line: 326
Char: 13
Code: 0
URI: http://10.18.39.134:8080/fileEntry/javax.faces.resource/fileentry/fileEntry.js.jsf?ln=icefaces.ace&v=4_2_0_160518.
To reproduce:
1.) With IE 8 use the /fileEntryClientValidateRequired.jsf page found at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/fileEntry
2.) Press the Upload button (do not browse for file first). A required validation message will appear.
3.) Press the Browse button and choose a file.
4.) Press the Upload button. The js error popup appears.
Message: Invalid argument.
Line: 326
Char: 13
Code: 0
URI: http://10.18.39.134:8080/fileEntry/javax.faces.resource/fileentry/fileEntry.js.jsf?ln=icefaces.ace&v=4_2_0_160518.
To reproduce:
1.) With IE 8 use the /fileEntryClientValidateRequired.jsf page found at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/fileEntry
2.) Press the Upload button (do not browse for file first). A required validation message will appear.
3.) Press the Browse button and choose a file.
4.) Press the Upload button. The js error popup appears.
Modified ice.ace.fileentry.addHiddenInput to edit the hidden input fields if element is already present. Lookup the input elements before removing them from the form just in case they were changed by an update (and thus orphaned).