Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.1, 1.7.2, 1.7.2 SP1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:ANY
Description
When closed a panelPopup with inputFile component, the following JavaScript error is caught:
document.getElementById("iceForm:j_id19:uploadFrame") is null
[Break on this error] [Ice.Script=new Object,Ice.Ajax.Client]....o evaluate script: \n"+code,e);}}}});});
This issue occurs only when value specified for attribute "submitOnUpload" of inputFile is not "none"
It seems that ICEfaces 1.7.0 doesn't have this issue.
document.getElementById("iceForm:j_id19:uploadFrame") is null
[Break on this error] [Ice.Script=new Object,Ice.Ajax.Client]....o evaluate script: \n"+code,e);}}}});});
This issue occurs only when value specified for attribute "submitOnUpload" of inputFile is not "none"
It seems that ICEfaces 1.7.0 doesn't have this issue.
-
Hide
- support7852.war
- 4.88 MB
- Sam Xiao
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/icefaces-comps.jar 1.71 MB
- main.jspx 1 kB
- WEB-INF/lib/jsf-impl-1.2.jar 813 kB
- WEB-INF/lib/commons-el.jar 110 kB
- WEB-INF/lib/commons-discovery.jar 70 kB
- WEB-INF/lib/jsf-api-1.2.jar 353 kB
- WEB-INF/lib/commons-beanutils.jar 184 kB
- WEB-INF/lib/jstl.jar 17 kB
- WEB-INF/classes/support/TestBean.class 0.7 kB
- WEB-INF/faces-config.xml 0.4 kB
- WEB-INF/lib/commons-fileupload.jar 87 kB
- index.jsp 0.2 kB
- WEB-INF/lib/icefaces.jar 990 kB
- WEB-INF/web.xml 5 kB
- WEB-INF/classes/support/TestBean.java 0.4 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/commons-collections.jar 558 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The inputFile makes use of an onunload event on the iframe for detecting when the upload has completed, for the postUpload form submission. The problem was that when the iframe was unloaded, not because of an upload, but because it was not being rendered anymore, due to the container panelPopup ceasing to be rendered, that specific handler code shouldn't run. Now it makes a few more sanity tests as it goes.
Subversion 18197
icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java
Show
Mark Collette
added a comment - The inputFile makes use of an onunload event on the iframe for detecting when the upload has completed, for the postUpload form submission. The problem was that when the iframe was unloaded, not because of an upload, but because it was not being rendered anymore, due to the container panelPopup ceasing to be rendered, that specific handler code shouldn't run. Now it makes a few more sanity tests as it goes.
Subversion 18197
icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java
Test case with ICEfaces 1.7.2 SP1 and for Tomcat 6.0