This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 30, 2011, 11:47 AM
6 Posts
topic has been resolvedResolved

I want to use higher Dojo versions

  • Category: Dojo and Client Side JavaScript
  • Platform: Not Applicable
  • Release: 8.5.2
  • Role: Developer,Administrator
  • Tags: Dojo Versions
  • Replies: 3
Hi,
 
I am using different dojo versions in projects. Mostly I am doing that on application level with xsp.client.scriptlibraries=none in the xsp.properties file. Then I use a 1.5 or 1.6 dojo which is included in the nsf. Doing that I am discovering that some basic features like partial refresh are not working anymore. I read to include the standard "/domjs/dojo-1.4.3/ibm/xsp/widget/layout/xspClientDojo.js" which is only delivered in 'IBMs dojo version'. But after that I get this error in firebug: Could not load 'ibm.xsp.widget.layout.nls.xspClientDojo_de'; last tried '../ibm/xsp/widget/layout/nls/xspClientDojo_de.js'
I don't want to install a new dojo version on the server because not every administrator at our customers is open to modify his server.
 
Has anyone a tip how to load higher dojo versions with full standard xpages functionality and no errors in the console?
 
PS: Does anyone know which dojo version will be shipped with 8.5.3?
 
May 30, 2011, 12:16 PM
38 Posts
Re: I want to use higher Dojo versions
 8.5.3 will be shipped with Dojo 1.5. So you will natively have access to the dojox.mobile part.
May 31, 2011, 10:39 AM
33 Posts
Re: I want to use higher Dojo versions
You can try to register module path for ibm.xsp.* prefix.
I think it's something like this: 
 
dojo.registerModulePath('ibm.xsp', 'path'); 
Jun 1, 2011, 8:32 PM
64 Posts
Hack Attack....
-  I snagged the dojo directories from R8.5.3 CD4.
- Then I overlaid it with the source of dojo-1.5.1 RC3, I think it was.  By overlaid, I mean I copied the source of that distro over the top of the 853CD4 distro, letting it overwrite duplicate files but leaving the rest of the directory structure intact.
- Then I used that hybrid ibm/dojo source tree to create a custom build.
- Then I copied this custom build release to my R8.5.1 server as directory dojo-1.5.1, leaving the original dojo tree intact.
- XPages will automagically use the very latest version of dojo it finds, so all my R8.5.1 XPages are using dojo-1.5.1 custom build with full XPage automagic CSJS support.
- Woot!
 
Hope this helps...
 
P.S.  This has not been attempted with dojo 1.6.  Prior trials stuffing dojo 1.5.x into Domino's 1.4.3 tree resulted in failure.  There are a lot of changes in dojo 1.6 so I would expect a similar failure there.  Never thought of attempting to manually register the XSP modules to fix it.  That seems like "better" way to do it, if it works.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal