Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
434 views
in Technique[技术] by (71.8m points)

android - IBM Worklight 6.0 - How to include Dojo patch with pre-built Dojo layers?

Developing Worklight 6.0 applications with Dojo 1.9, we're encountering some page navigation problems on Galaxy SII, SIII, Note devices with running Android v4.1.2 (very common).

We see these issues were resolved by Dojo patch #17164.
This patch is not included in Worklight's default Dojo build.

We tried to include it by placing the files in the project's dojoxmobile folder but with no effect - we guess it is being overwritten by unpatched classes during build.

Is there any other way to include/define this patch? We prefer to avoid custom building Dojo ourselves to keep up with WL versions.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Since you would like to avoid custom building Dojo, an alternative may be to remove the www/layers/mobile-ui-layers.js from your project and rely on the Dojo Library project providing resources during development. You can then place the updated the original files in the Dojo Library project and utilize the Mobile Browser Simulator. When deploying to the device, however, you must then place all of the application's required resources that were once part of the mobile-ui-layers into your project's www/ directory, maintaining the appropriate directory structure.

For information on the Dojo Library project and finding out which Dojo resources are requested by an application, please see the Worklight Studio Infocenter Document Worklight Dojo library project setup.

If you do decide to venture and perform a custom Dojo build, you can rebuild the mobile-ui-layers.js file to use the patched files using the Dojo Build Factory.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...