Ibm mobilefirst 在worklight混合应用程序中找不到dojox/calendar/calendar.js 404

Ibm mobilefirst 在worklight混合应用程序中找不到dojox/calendar/calendar.js 404,ibm-mobilefirst,dojo,Ibm Mobilefirst,Dojo,我有一个应用程序试图在使用dojo的Worklight 5.0.6混合应用程序中使用dojox.calendar.calendar。我已经将calendar-layer.js.compressed.js添加到了copy和dojo.resources.layers的build-dojo.xml文件中 <patternset id="dojo.resources.layers"> <include name="dojo/dojo.js.compres

我有一个应用程序试图在使用dojo的Worklight 5.0.6混合应用程序中使用dojox.calendar.calendar。我已经将calendar-layer.js.compressed.js添加到了copy和dojo.resources.layers的build-dojo.xml文件中

    <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>

非常欢迎任何帮助。

不确定您的应用程序的用途,但您是否尝试过使用dojox.mobile.Calendar而不是dojox.Calendar.Calendar?

对于感兴趣的人,我花了一天晚上的时间深入研究了这个问题,并且能够使dojox.mobile.Calendar和dojox.Calendar.Calendar都正常工作。最后,我创建了自己的日历小部件。calendar.calendar的限制非常严格,字体被定义为像素级,缩放效果不好。虽然dojox.mobile.Calendar工作得更好,但我正在寻找的UI是将一周作为一个整体而不是一天进行选择

要使其正常工作,您需要更新build-dojo.xml以确保所需的CSS、html模板和javascript。很多人都在浏览包含的JS,然后在chrome中查看控制台消息中缺少哪些文件。请参阅下面的代码片段:

    <!-- 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>

尝试了相同的结果。calendar.calendar是工具选项板中使用的小部件。
        <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>
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
    <!-- 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>