Bryan Schmiedeler
Bryan Schmiedeler

Reputation: 3127

Overriding Dojo version for a particular Xpages database

Apple's iOS 8 breaks certain tap functionality in versions of dojo prior to 1.9.4 (see Xpages mobile controls not working in iOS8

The current version of Dojo in Domino 9.0.1 FP2 is 1.9.2 but that does not fix the issue. You have to use at least 1.9.4.

I have downloaded 1.9.4 and placed it in the correct folder on our test server. But I cannot get things to work. I changed the folder name of dojo 1.9.4 to 1.4.0 as I only want to use this version for 2 dbs that are having the problem.

Question 1:

What line do I put in the xsp.properties file:

xsp.client.script.dojo.version = 1.4.0 xsp.client.script.dojo.path = / domjs / dojo-1.4.0

Question 2:

There are so many things to download when I go to the dojo download page. I downloaded the zip file and used that.

When I run code to test what version of dojo I have I get 1.9.4. But when I try to load my page, I get an error.

dojo._loaders: TypeError: dojo._loaders is undefined

Any help would be GREATLY appreciated.

Upvotes: 0

Views: 1258

Answers (2)

Brian Gleeson - IBM
Brian Gleeson - IBM

Reputation: 2565

You probably have the right dojo zip, this one: http://download.dojotoolkit.org/release-1.9.4/dojo-release-1.9.4.zip. As you say, unzip that to the dojo-1.9.4 folder in <server-install>\data\domino\js\, or name the folder 1.4.0 if you want to specify it for only a few apps.

You will indeed need to copy the IBM folder from the <server-install>\osgi\shared\eclipse\plugins\com.ibm.xsp.dojo_9.0.1.<date-stamp>\xsp.dojo.jar into your new 1.9.4 (or 1.4.0) dojo folder. Little chance of anything working without it. Copying the ibm folder from the 1.5.2 folder is a bad idea as that is old code, and you'd certainly have issues with it working with dojo 1.9.4. In Fix Pack 2, the ibm folder from the plugin was tested/designed to work with dojo 1.9.2 (the version in that jar), so it should play fairly nice with 1.9.4.

In your XPages app, in the xsp.properties, you should only need the line:

xsp.client.script.dojo.version = 1.9.4

Rebuild your app, restart the server etc, and you should be good to go.

DISCLAIMER: This is a work-around, not a supported solution by IBM. There may be unexpected issues using this approach. It's used at your own risk.

Upvotes: 2

Oliver Busse
Oliver Busse

Reputation: 3395

You commented already on that topic here so I think you tried this one? http://hasselba.ch/blog/?p=323 This is the SO thread: XPages mobile controls not working with iOS 8

Upvotes: 1

Related Questions