Javascript Error On Webcenter Homepage With Custom Site Template (Doc ID 1122833.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.2.0 and later
Information in this document applies to any platform.
***Checked for relevance on 10-DEC-2013***

Symptoms

The logged in home page is displaying a javascript error when the site template is changed to a custom one.
The custom site template was built using the following white paper and sample code:

    Oracle White Paper— Customizing Site Templates in WebCenter Spaces (11.1.1.2.0)
    http://www.oracle.com/technetwork/middleware/webcenter/white-papers-088385.html

Example 1 Error

A runtime error has occurred. Do you wish to Debug?
Line:67
Error: 'null' is not null or an object



The error is coming from all_spaces_SHEPHERD_PS1_0027.js

62 function _wcActivateTabPopupLauncher(tab)
63 {
64 // making the tab dropdown icon visible and associatiing with tab
65 var navPane = tab.getParent();
66 var popupIconicLauncher = navPane.findComponent('tabPopUp:tabPopupLauncher');
67 popupIconicLauncher.setProperty('wcTabClientId', tab.getClientId()); <<<<<<<<<<<<<<<<<<<<
68 popupIconicLauncher.setVisible(true);


Example 2 Error

A runtime error has occurred. Do you wish to Debug?
Error: navPane is undefined
Line: 56



The error is coming from all-spaces-11.1.1.3.0-0084.js


51 function wcOnRenderNavPaneTimeout(navPaneId, selectedTabIndex)
52 {
53 var navPane = AdfPage.PAGE.findComponent(navPaneId);
54 if (selectedTabIndex >= 0)
55 {
56 var tab = navPane.findComponent('' + selectedTabIndex + ':tab');
57 if (tab != null && tab.getProperty('wcAllowedOperationsNonEmpty') == true)
58 _wcActivateTabPopupLauncher(tab);
59 }
60 }



Changes

A custom site template is used.

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