ICEfaces
  1. ICEfaces
  2. ICE-11426

Problem in component inputFile when using postUpload

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

      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 case ICE-11408

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52714 Thu Sep 06 13:43:53 MDT 2018 mircea.toma ICE-11426 Issue partial submit on iframe's unload event.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFile.java

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Alessandro Bianchi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: