ibm mobilefirst - dojox/calendar/Calendar.js 404 not found in worklight hybrid application -


i have app trying use dojox.calendar.calendar in worklight 5.0.6 hybrid app using dojo. i've added calendar-layer.js.compressed.js build-dojo.xml file both copy , 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 main html file i've included layer 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 rich html editor, i've added calendar dojox widget palette 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 build launch app. i'm seeing following in console.

failed load resource: server responded status of 404 (not found) http://localhost:8090/apps/services/preview/bobcat/iphone/1.0/default/dojox/calendar/calendar.js 

any welcomed.

for interested, took sometime other night dive deeper , able both dojox.mobile.calendar , dojox.calendar.calendar working. in end created own calendar widget. dojox.calendar.calendar restrictive, fonts defined down pixel level , did not scale well. dojox.mobile.calendar worked better, ui looking have week selected whole instead of day.

to working need update build-dojo.xml make sure needed css, html templates, , javascript. lot of looking through js included , in chrome see files missing console messages. see snippet below:

    <!-- copy dojox.mobile -->     <copy todir="${build.dir}">         <fileset dir="${dojo.root}">             <include name="dojox/mobile/bookmarkable.js"/>             <include name="dojox/mobile/devicetheme.js"/>             <include name="dojox/mobile/migrationassist.js"/>             <include name="dojox/mobile/mobile-all.js"/>             <include name="dojox/mobile/themes/**"/>             <include name="dijit/themes/**"/>             <include name="dojox/calendar/**"/>             <include name="dojox/html/**"/>                  <include name="dojo/cldr/**"/>             <include name="dojox/widget/**"/>             <include name="dijit/icons/images/**"/>         </fileset>     </copy> 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -