I have an app that trying to use dojox.calendar.Calendar in a Worklight 5.0.6 hybrid app using dojo. I've added calendar-layer.js.compressed.js to my build-dojo.xml file for the both the copy and dojo.resources.layers.
<patternset id="dojo.resources.layers">
<include name="dojo/dojo.js.compressed.js"/>
<include name="dojo/core-web-layer.js.compressed.js"/>
<include name="dojo/calendar-layer.js.compressed.js"/>
</patternset>
<copy todir="${build.dir}">
<fileset dir="${dojo.root}">
<include name="dojo/mobile-compat-layer.js.compressed.js"/>
<include name="dojo/mobile-ui-layer.js.compressed.js"/>
<include name="dojo/calendar-layer.js.compressed.js"/>
</fileset>
<mapper refid="dojo.resources.mapper"/>
</copy>
In my main html file I've included the layer for calendar.
<body id="content" style="display: none">
<script src="js/initOptions.js"></script>
<script src="js/bobCAT.js"></script>
<script src="js/messages.js"></script>
<script src="dojo/calendar-layer.js"></script>
Using the rich html editor, I've added the calendar Dojox Widget from Palette into a simple dialog.
<div data-dojo-type="dojox.mobile.SimpleDialog" id="select-week-dialog">
<div data-dojo-type="dojox.mobile.Heading"
data-dojo-props="label:'Select Week'"></div>
<div id="select-week-dialog-calendar" data-dojo-type="dojox.calendar.Calendar"></div>
<div align=center>
<button id="select-week-dialog-ok" data-dojo-type="dojox.mobile.Button" style="width:100%;height:40px">OK</button>
<button id="select-week-dialog-cancel" data-dojo-type="dojox.mobile.Button" style="width:100%;height:40px">Cancel</button>
</div>
</div>
When I build then launch the app. I'm seeing the following in the console.
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8090/apps/services/preview/bobCAT/iphone/1.0/default/dojox/calendar/Calendar.js
Any help would be greatly welcomed.