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
Attached sample application installs a servlet filter which delays rendering of IFRAME content by 3 seconds.
To test: