Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
-
Component/s: None
-
Labels:None
-
Environment:JBoss AS 5.0.1.GA, IE7, FF3
Description
Client-side JavaScript code which handles submitOnUpload=preUpload, submitOnUpload=postUpload and submitOnUpload=preAndPostUpload is not reliable.
In particular, it assumes that IFRAME content is loaded within 300 ms which cannot be guaranteed in a networked environment.
If IFRAME is not loaded fast enough, both IE7 and FF3 display a JavaScript error:
frame.document.getElementsByTagName("form")[0] is undefined
After such error happens, submitOnUpload feature ceases to work until page is refreshed.
Possibly related JIRA issues and forum posts are:
ICE-3144
ICE-4246
http://www.icefaces.org/JForum/posts/list/12180.page
In particular, it assumes that IFRAME content is loaded within 300 ms which cannot be guaranteed in a networked environment.
If IFRAME is not loaded fast enough, both IE7 and FF3 display a JavaScript error:
frame.document.getElementsByTagName("form")[0] is undefined
After such error happens, submitOnUpload feature ceases to work until page is refreshed.
Possibly related JIRA issues and forum posts are:
http://www.icefaces.org/JForum/posts/list/12180.page
Evaluated the suggested patch. Tested scenarios before and after applying the patch.
Discovered an issue with autoUpload="true" and submitOnUpload="pre[AndPost]Upload". Researched that, and found
ICE-5600, which deals with that issue. SolvedICE-5600, and tested that in the context of this jira's fix.Subversion 23044