Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P10
-
Fix Version/s: EE-1.8.2.GA_P11
-
Component/s: ICE-Components
-
Labels:None
-
Environment:OS: RedHat 7
Servlet Container: Tomcat 7
Portal Container: Liferay 6.2
Browser: Internet Explorer 11
-
Support Case References:Support Case 14386:- https://icesoft.my.salesforce.com/5000g00001wrkjf
Description
Hi
We are facing a blocking problem with the ice:inputFile component:
When finishing uploading the file, the properties of the backing bean change to show the user that the upload ended successfully.
We use the property submitOnUpload="postUpload" to achieve this.
This works correctly with Icefaces 1.8.2 P03, but when running the same application (that is a portlet inside a Liferay 6.2 portal container) with P10, the user interface is not updated, that is, the user has no feedback regarding the completion of the upload.
Looking at the markup that is generated for the component, we see this javascript code:
…
var uploadEnd = function() {
submit(1);
};
if (window.attachEvent) {
window.attachEvent('onbeforeunload', uploadEnd);
} else {
window.addEventListener('beforeunload', uploadEnd, true);
}
…
The beforeunload event fires before the file upload has completed, and that causes the form contained in the parent window to be submitted concurrently with the file upload.
With the P03 this doesn’t happen: the form contained in the parent window is submitted only after the file upload has completed.
The P10 we are using is a patched versione you gave us some months ago regarding caseICE-11408
We are facing a blocking problem with the ice:inputFile component:
When finishing uploading the file, the properties of the backing bean change to show the user that the upload ended successfully.
We use the property submitOnUpload="postUpload" to achieve this.
This works correctly with Icefaces 1.8.2 P03, but when running the same application (that is a portlet inside a Liferay 6.2 portal container) with P10, the user interface is not updated, that is, the user has no feedback regarding the completion of the upload.
Looking at the markup that is generated for the component, we see this javascript code:
…
var uploadEnd = function() {
submit(1);
};
if (window.attachEvent) {
window.attachEvent('onbeforeunload', uploadEnd);
} else {
window.addEventListener('beforeunload', uploadEnd, true);
}
…
The beforeunload event fires before the file upload has completed, and that causes the form contained in the parent window to be submitted concurrently with the file upload.
With the P03 this doesn’t happen: the form contained in the parent window is submitted only after the file upload has completed.
The P10 we are using is a patched versione you gave us some months ago regarding case
Activity
Alessandro Bianchi
created issue -
Judy Guglielmin
made changes -
Field | Original Value | New Value |
---|---|---|
Support Case References | Support Case 14386:- https://icesoft.my.salesforce.com/5000g00001wrkjf |
Judy Guglielmin
made changes -
Assignee | Mircea Toma [ mircea.toma ] |
Ken Fyten
made changes -
Fix Version/s | EE-1.8.2.GA_P11 [ 13275 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #52714 | Thu Sep 06 13:43:53 MDT 2018 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFile.java
|
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Issue partial submit on iframe's unload event to ensure the postLoad JSF event is triggered at the tight time.
A partial submit cannot be issued on unload event of the main window but in this case the submit is issued from the main window for an event that occurs in a child iframe.