WebCenter Interaction Transformer/Tag Engine Adds CSAPI JavaScript Incorrectly (Doc ID 1320181.1)

Last updated on APRIL 17, 2017

Applies to:

Oracle WebCenter Interaction - Version 6.1 to 10.3.0.1
Information in this document applies to any platform.

Symptoms

I have created a remote page with a custom javascript variable with a '<head>' tag.  I've set up my WebCenter Interaction Portal (WCI) to gateway this page, but the Transformer/Tag Engine adds CSAPI JavaScript to the wrong places.  As a result, the page to render incorrectly.  What is wrong?

For example, here is an html page with a sample javascript:

<html>
<head>
<script language="JavaScript">
Calendar.prototype.show = function() {
document.write("<html>");
document.write("<head><title>Calendar</title>");
document.write("</head>");
}
</script>

<script language="javascript">
function fnAddEmp(){
document.frmAddEmp.target="starting";
document.frmAddEmp.action="test.jsp";
document.frmAddEmp.submit();
}
</script>
<title>Add Employee Information</title>
</head>
<body>
Sample Page Body
</body>
</html>



The source of the gatewayed page shows the highlighted incorrectly-inserted javascript after the <head> tag:

........
<script language="JavaScript">
Calendar.prototype.show = function() {
document.write("<html>");
document.write("<head><script type="text/javascript">
if (!document.getElementById('PTIncluder-js')) {
document.write('<script id="PTIncluder-js" type="text/javascript" src="http://localhost/imageserver/plumtree/common/private/js/jsincluder/LATEST/PTIncluder.js"></scr'+'ipt>'); }
</script>
<script type="text/javascript">
PTIncluder.imageServerURL = 'http://localhost/imageserver/';
PTIncluder.basePath = 'plumtree/common/private/js/';
PTIncluder.lang = 'en';
PTIncluder.country = 'US';
PTIncluder.debug = false;
PTIncluder.loadComponent('jsportlet');
</script><script type="text/javascript" >
pt_237 = new PTPortlet('237', '{379762D7-0901-43EB-9133-13061AAA19D5}', 'Sample Portlet', 'pt-portlet-content-237', 'http://machine.domain.com:80', 'http://localhost:80/idk', 'http://localhost/portal/server.pt/gateway/PTARGS_0_0_237_0_0_43/', 'http://localhost/portal/server.pt/gateway/PTARGS_0_0_237_0_0_43/', 'false', 'http://localhost/portal/server.pt/gateway/PTARGS_6_0_237_0_0_43/');</script>

<title>Calendar</title>");
document.write("<script type="text/javascript" id="pt-includer"></script></head>");
}
</script>
.........

Changes

This is happens on WCI portal version 6.1 to version 10.3.0.1.

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