When you add new JavaScript or CSS files to your customization directory, you should point the AgentUIConfiguration component to it using the applicationScriptFiles property. When you add your JavaScript or CSS files to the applicationScriptFiles property, they are aggregated and loaded at the same time to the application server. This avoids multiple communications with the application server:

  1. Add JavaScript files to the applicationScriptFiles property of the Service-UI/
    Framework/Agent/config/atg/svc/agent/ui/
    AgentUIConfiguration.properties
    file.

    The following example adds myScript1.js and myScript2.js to myServiceCenter. To add to the list, ensure that you use the += syntax:

    applicationScriptFiles+=
             /myServiceCenter/myScripts/myScript1.js,
             /myServiceCenter/myScripts/myScript2.js

  2. If dojoDebug is turned on, as discussed in Dojo Debugging Mode, you must add your custom scripts to the debugScriptFiles list:

    debugScriptFiles+=
             /myServiceCenter/myScripts/myScript1.js,
             /myServiceCenter/myScripts/myScript2.js

  3. To add a new CSS file, add it to /atg/svc/agent/ui/AgentUIConfiguration using the applicationStyleSheets property:

    applicationStyleSheets+=
             /myServiceCenter/myStyles/myStyles.css


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices