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.
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