I've successfully extended the Convergence javascript in 3 places, but when I try to extend the Banner widget I am running into an error.
I followed the instructions for modifying the Banner here:
http://wikis.sun.com/display/CommSuite/Customizing+the+Convergence+Banner
I restarted the appserver, cleared my browser cache, and even tried another browser.
This is the error that shows up in FireBug:
failed loading ../js/dojotoolkit/dojo/../../../c11n/allDomain/js/widget/Banner.js?401_145801 with error: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: https://my.server.name/iwc_static/js/dojotoolkit/dojo/dojo.js?4.01_145801 :: anonymous :: line 20" data: no]dojo.js?...01_145801 (line 20)
failed loading ../js/dojotoolkit/dojo/../../../c11n/allDomain/js/customize.js?401_145801 with error: Error: Could not load 'c11n.allDomain.js.widget.Banner'; last tried '../../../c11n/allDomain/js/widget/Banner.js'dojo.js?...01_145801 (line 20)
[Exception... "'Error: Could not load 'c11n.allDomain.js.customize'; last tried '../../../c11n/allDomain/js/customize.js'' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
This is
iwc_static/c11n/allDomain/js/customize.js
dojo.provide("c11n.allDomain.js.customize");
// Remove the Forwarding, Filters options
dojo.require("c11n.allDomain.js.service.Mail");
// Remove the Change Password menu item from the Options tab
dojo.require("c11n.allDomain.js.service.Options");
// Hide the digital signature verification failed security pane
// see c11n/allDomain/js/widget/MailMessageViewer.js
dojo.require("c11n.allDomain.js.widget.MailMessageViewer");
// global theme elements
var origLoadThemeFunc = iwc.api.loadTheme;
iwc.api.loadTheme = function(s) {
origLoadThemeFunc(s);
iwc.api.loadCssFile("../layout/css/wisc.css");
}
dojo.require("c11n.allDomain.js.widget.Banner");
Note: this works fine if I comment out the last line.
This is the list of files that are installed:
find /opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/service
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/service/Options.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/service/Mail.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/widget
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/widget/MailMessageViewer.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/widget/Banner.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/js/customize.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/nls
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/allDomain/nls/resources.js
/opt/SUNWappserver/domains/domain1/docroot/iwc_static/c11n/config.js
This is
iwc_static/c11n/allDomain/js/widget/Banner.js
dojo.provide("c11n.allDomain.js.widget.Banner");
dojo.require("iwc.widget.Banner");
dojo.declare("iwc.widget.Banner", iwc.widget.Banner, {
constructor: function() {
iwc.widget.Banner.superclass.constructor.apply(this, arguments);
this.themeColor["wisc_red_theme"] = "#75BE19";
},
last: ""
});