<af:inputFile> Update File Popup Window Does Not Dismiss (Doc ID 1570987.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

An ADF file upload component <af:inputFile> is used  in a portletized jspx file as shown in the following snippet of source code:

  <f:view>
    <af:document id="d1">
      <af:form id="f1" usesUpload="true">
        <af:inputFile label="File" id="if1"/>
        <af:commandButton text="Upload" id="cb1"/>
      </af:form>
    </af:document>
  </f:view>

The web.xml has declared upload file size limit as follows  (1 Mb).

<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
<param-value>1048576</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
<param-value>1048576</param-value>
</context-param>  

When the portlet application is deployed into WebCenter Portal managed server, such as WC_Portlet, the update file popup window does not dismiss after file uploading fails due to file size limit.

The issue can be reproduced at will with steps:

Deploy a test case project onto WC_Portlet
Open browser, go to /<webapp_content>/info to show WSRP Producer Test Page. As per the following screen shot.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms