dojo ibm-mobilefirst

la luz de trabajo no requiere DOJO Combobx en el dispositivo real-no se carga.../dijit/form/nls/it/ComboBox.js



ibm-mobilefirst (2)

¿Has intentado hacerlo de esta manera?

function dojoInit() { require(["dojo/ready", "dojox/mobile/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/ScrollableView", "dojox/mobile/ScreenSizeAware", "dojox/mobile/FixedSplitter", "dojox/mobile/Container", "dojox/mobile/ComboBox", "dojo/ready!" ], function(ready,parser,Container,ComboBox) { ready(function() { alert("I was clicked"); }); // Parse the page for widgets! parser.parse(); });

Saludos

Dojo 1.8 Worklight 5.0.6

En el navegador y el emulador de Android todo funciona, pero si ejecuto la aplicación en real, el análisis no funciona. Esto es Dojo.js

function dojoInit() { require([ "dojo", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/ScrollableView", "dojox/mobile/ScreenSizeAware", "dojox/mobile/FixedSplitter", "dojox/mobile/Container", "dojox/mobile/ComboBox" ], function(dojo) { dojo.ready(function() { }); });

}

Este es el error del navegador en la tableta:

xxx.26.81:8080/apps /services/preview/AcgTablet/common/0/default/dijit/form/nls/it/ComboBox.js Error dojo.js:26

pero este error no aparece en el navegador de la PC ¡Pero hay en la carpeta!


¿Probablemente estés usando Worklight V6?

Actualmente hay un problema para ejecutar en dispositivos Android. Aquí puede encontrar la solución: Errores de Worklight core-web-layer.js

For your issue with running on Android, if you''re using Worklight 6.0 with a new project, copy the following files from the Dojo Library project that was created alongside the Worklight project: toolkit/dojo/dojo/nls/core-web-layer_ROOT.js toolkit/dojo/dojo/nls/mobile-ui-layer_ROOT.js These files then must be added to your Worklight project''s www/dojo/nls/ directory. In addition to including the *_ROOT.js files, you may also need to remove the development configuration from the application. To do this, open the Console view (Window > Show View > Other... > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. After this, build and deploy your application to your emulator or device.