Use uncompressed JavaScript for logging and tracing client side rendering

By default, WebSphere Portal uses compressed JavaScriptâ„¢ for logging and tracing. However, JavaScript error messages can be difficult to read when generated from compressed JavaScript. To use uncompressed JavaScript, make several changes to the page builder theme.

To use uncompressed JavaScript, do the following:

  1. cd

      $PORTAL_HOME/theme/wp.mashup.cc.theme/installedApps/wp.mashup.cc.theme.ear/PageBuilder2.war/themes/html/PageBuilder2/

  2. Copy the following files to a work directory:

    • config.jsp

    • configGlobal.jsp

    • head.jsp

  3. Open the file config.jsp with a text editor.

  4. Change

      <script type="text/javascript" src="${dojoRoot}/com/ibm/themes/PageBuilder2/theme.js"></script>

      to

      <script type="text/javascript" src="${dojoRoot}/com/ibm/themes/PageBuilder2/theme.js.uncompressed.js"></script>

  5. Save and close the file config.jsp.

  6. Open the file configGlobal.jsp with a text editor.

  7. Change

      editModeJSURL: "${dojoRoot}/com/ibm/themes/PageBuilder2/theme.edit.js",

      to

      editModeJSURL: "${dojoRoot}/com/ibm/themes/PageBuilder2/theme.edit.js.uncompressed.js",

  8. Save and close the file configGlobal.jsp.

  9. Open the file head.jsp with a text editor.

  10. Change

      <script type="text/javascript" src="${dojoRoot}/dojo/dojo.js"></script>

      to

      <script type="text/javascript" src="${dojoRoot}/dojo/dojo.js.uncompressed.js"></script>

  11. Save and close the file head.jsp.

  12. Copy the JSP files into custom theme directory.

  13. Redeploy theme. For instructions, see the topic about Deploy the theme.

  14. Refresh browser cache.


Parent

Logging and tracing client side rendering


Related tasks


Deploy the theme

 


+

Search Tips   |   Advanced Search