+

Search Tips   |   Advanced Search

Dojo and WebSphere Portal


WebSphere Portal contains an instance of the IBM Dojo Toolkit, a JavaScript library based on the Dojo toolkit (http://dojotoolkit.org). When developing components that use Dojo, you must be aware of the way in which the portal uses Dojo, as well as tips and restrictions when using Dojo.

WebSphere Portal v8.0 comes with five versions of Dojo:

All Dojo packages can be used by IBM and non-IBM components.

  1. The Portal 8.0 theme uses Dojo v1.7.2 by default in WebSphere Portal v8.0. This is the only supported version of Dojo with the Portal 8.0 theme.

  2. The Portal 7.0.0.2 theme uses Dojo v1.6.1 by default in WebSphere Portal v7.0.0.2. This is the only supported version of Dojo with the Portal 7.0.0.2 theme.

  3. The Page Builder theme uses Dojo v1.4.3 by default in WebSphere Portal v7.0.

  4. The Portal theme uses Dojo v1.3.2 by default in WebSphere Portal v6.1.5 and v7.0. This is the only supported version of Dojo with the Portal theme.

  5. The PortalWeb2 theme uses Dojo v1.1.1 by default in WebSphere Portal v6.1 and Dojo v1.3.2 by default in WebSphere Portal v6.1.5. These are the only supported versions of Dojo with the PortalWeb2 theme.

  6. The Dojo Toolkit provided with the portal will be updated as needed over time. This could include entire new Dojo versions, as well as specific defect fixes. Compatibility of future Dojo versions is defined by the Dojo project.


Where WebSphere Portal uses Dojo

The Portal 8.0 theme uses Dojo v1.7.2 to support various portlets and edit-mode user interface components. The portlets and components that use Dojo vary over time. The current set of portlets that uses Dojo includes Managed Pages edit-mode user interface components, Search Center, External Search Results, Tagging and Rating, Tag Cloud, Active Site Analytics, Resource Manager Portlet, Unified Task List, WidgetWrapper Portlet, WCM Rendering Portlet, Web Content Libraries, Web Content Subscribers, Web Content Syndicators, Feed Schedules, Web2Bookmarks Portlet, CMIS Picker Portlet, and Quickr Pickr Portlet.

The portal components that use Dojo are only supported for use with the bundled Dojo. Dojo is packaged as a module as part of the modular architecture for the Portal 8.0 (and Portal 7.0.0.2) theme. For performance optimization, the minimal profile does not load Dojo at all, and the default deferred profile does not load Dojo initially for view mode, but, rather, only when a page is put into edit mode. As long as you don't load the Dojo module or any module that is a prerequisite the Dojo module in the non-deferred part of the profile, then you will not pay any performance price of loading Dojo in view mode and at run time. If you elect, we are now free to use a different JavaScript library in the view mode for the custom theme and run time. Simply creating and load our own modules for the library.


Use Dojo in the custom portal themes

For information about how to use Dojo in custom portal themes that created see the topic about Creating a new theme.

Upgrade your custom portal themes to a later Dojo version supported by the portal: To upgrade the existing custom themes to a later supported version of Dojo, see the following sections:


Dojo usage best practices

When working with Dojo and portal components, be aware of the following best practices:


Dojo usage restrictions

Observe the following restrictions when using Dojo with the portal:


Parent: Developing
Related:
Update custom theme Dojo references
Create a new theme

Dojo and WebSphere Portal wp7