My Oracle Support Banner

Embedding an SFW File In A Portletized Task Flow Fails to Display the Flash Content and Returns an HTTP-404 Error (Doc ID 1342894.1)

Last updated on MARCH 07, 2019

Applies to:

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

Symptoms


When trying to embed a flash file (.swf) in ADF taskflow and portletizing the taskflow using the Portlet Bridge it fails to display the flash content and generates an HTTP-404 error. The issue occurs only if the ADF taskflow is portletized, and the standalone ADF Taskflow when run displays the flash correctly.

The following is a simple test case which can be used to view the behavior:

* Use a simple flash viewlet created for testing called rdademo.swf, and place it in the JDev project folder.
* Create an HTML file "untitled1.html" to use the above flash:



<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #version=10,0,0,0"
id="rdademo"
align="middle">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="allowFullScreen" value="false"/>
<param name="wmode" value="transparent"/>
<param name="movie" value="rdademo.swf"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#4d5c64"/>
<embed src="rdademo.swf" quality="high"
name="rdademo.swf" align="middle"
allowscriptaccess="sameDomain" allowfullscreen="false"
type="application/x-shockwave-flash" wmode="transparent"
pluginspage="http://www.adobe.com/go/getflashplayer" style="height: 796px;
width: 1230px;"/>
</object>


Running the untitled1.html works correctly.

* Create a new Fusion Apps application in Jdeveloper
* In ViewController, create a new ADF Taskflow
* Add a view to the taskflow created and name it "first.jsff".
* Add below code in "first.jsff".



<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="pgl1">
<af:inlineFrame id="if1" source="/untitled1.html"/>



* Create a new JSF page and directly add the HTML having the SWF, see below code:

 

Run the JSF, the flash displays correctly.

 

However, portletizing it and adding it to a test JSF page will error out, see the following steps:

1. Create an HTML and add a reference to .swf/flash object.
2. Create an ADF taskflow with a jsff view referencing the HTML (holding .swf) created in step 1 above.

To test the flash functionality: Consume the ADF Taskflow created in step 2 to a sample JSF page and run the JSF page
Result: Flash displays correctly in the ADF Taskflow.

3. Now portletize the ADF taskflow in step 2 using Portlet Bridge, and consume the portlet to any application or Spaces and test.
Result: The flash doesnt gets displayed, it shows a black region with scroll bars but the flash will not display.


Note: The issue is reproduced when the .swf file is placed in the JDeveloper project directory directly.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.