I had need to make use of some of the more advanced Dojo Mobile controls for a project last week which ship with Dojo 1.7.2. For various reasons I needed the Dojo files inside the nsf rather than on the file system, and if you’ve had to do that before you’ll know what a massive pain it is to get the files loaded. So I thought I’d share a simple nsf with the files loaded.
You can either clone the database from Github here: https://github.com/whitemx/Dojo172XPages
Or you can download the nsf here: Dojo172.nsf.zip
The other changes I’ve made to the database are to disable the standard Dojo libraries (1.6.1 in 8.5.3) in the xsp.properties file and also turned off the default theme settings as well so no CSS will be downloaded unless you manually specify it in the resources.
Matt,
Do you generally recommend the method you describe of disabling the shipping Dojo version? Have you found any side effects?
@Rob – it all depends on your use case. In this case to get the Dojo files inside the nsf working you pretty much have to do it. The downside being that any XSP… client side functionality will be missing so that will mean partial refreshes, paging in views, posting of data etc etc (ie anything that talks to the server) will not work and you will need to code it yourself.
It's why in the end for my project last week I ended up going with jQuery Mobile instead of Dojo. (See Lesson 76 on XPages101.net for more information).
Matt
Hi Matt,
I am just sailing the Ship which you were 10months ago, the XSPClientDojo.js doesnt support the Partial refresh at all, I couldnt think of anyother.
I did tried to add condition along with the dojotype to data-dojo-type in the XSPClient.js
and add the client.js on the headerTag, still missing something, but surely its this file which is doing the mischeif..
Incase you get something on this, please let me know. Many thanks.
Rgds,
Sandeep.K