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:
- cd
$PORTAL_HOME/theme/wp.mashup.cc.theme/installedApps/wp.mashup.cc.theme.ear/PageBuilder2.war/themes/html/PageBuilder2/
- Copy the following files to a work directory:
- config.jsp
- configGlobal.jsp
- head.jsp
- Open the file config.jsp with a text editor.
- 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>
- Save and close the file config.jsp.
- Open the file configGlobal.jsp with a text editor.
- Change
editModeJSURL: "${dojoRoot}/com/ibm/themes/PageBuilder2/theme.edit.js",to
editModeJSURL: "${dojoRoot}/com/ibm/themes/PageBuilder2/theme.edit.js.uncompressed.js",
- Save and close the file configGlobal.jsp.
- Open the file head.jsp with a text editor.
- Change
<script type="text/javascript" src="${dojoRoot}/dojo/dojo.js"></script>to
<script type="text/javascript" src="${dojoRoot}/dojo/dojo.js.uncompressed.js"></script>
- Save and close the file head.jsp.
- Copy the JSP files into custom theme directory.
- Redeploy theme. For instructions, see the topic about Deploy the theme.
- Refresh browser cache.
Parent
Logging and tracing client side rendering
Related tasks
Deploy the theme