I am using Worklight 5.0.5 and would like to use a dijit.form.Form widget within my app.
When I try adding a dijit.form.Form (This is done by dragging from the Palette view and dropping onto my design view.), build all and deploy the app, and then try to view the common browser version of it in a chromium browser, I get the following errors displayed in the console:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/apps/services/preview/tempApp/common/0/default/dijit/themes/dijit.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/apps/services/preview/tempApp/common/0/default/dijit/themes/claro/claro.css
wlclient init started worklight.js:1097
before: app init onSuccess worklight.js:1097
after: app init onSuccess worklight.js:1097
wlclient init success worklight.js:1097
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/apps/services/preview/tempApp/common/0/default/dijit/form/Form.js
I am developing within eclipse indigo Version: 3.7.2 and Ubuntu 12.04 LTS. Attached is the html for the test project after adding the form. The only other changed I noticed is the addition of "dijit/form/Form" in the require of the dojoInit method within js/tempApp.js.
Note: In build-dojo.xml, Adding <include name="dijit/**"/> within the <patternset id="dojo.resources.loose-modules"> element does seemingly fix the problem. But from prior experiences this can cause more damage farther down the road and is not an ideal solution.
This topic has been locked.
5 replies Latest Post - 2013-01-10T20:33:36Z by SystemAdmin
Pinned topic Adding dijit.form.Form to Worklight App. causes numerous 404 Errors
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Re: Adding dijit.form.Form to Worklight App. causes numerous 404 Errors2013-01-08T19:29:52Z in response to SystemAdminWhere did you find dijit.form.Form in the Palette? I don't see it, and I wouldn't expect to since its not a mobile widget.
Re: Adding dijit.form.Form to Worklight App. causes numerous 404 Errors2013-01-10T19:09:17Z in response to SystemAdminYou can add more classes into the Palette by following these steps:
Right click white space in Palette View
Uncheck the hide box for everything you want to add.
Re: Adding dijit.form.Form to Worklight App. causes numerous 404 Errors2013-01-10T19:31:15Z in response to SystemAdminOK, so I would expect you would have to modify dojo-build the way you did. Since form isn't a mobile widget, you are going to have to bring in a lot of things that aren't part of the normal build profile.
Re: Adding dijit.form.Form to Worklight App. causes numerous 404 Errors2013-01-10T20:03:05Z in response to SystemAdminThank you for the response!
Do you know of any documentation on the correct way to add new widgets to this build script?
Re: Adding dijit.form.Form to Worklight App. causes numerous 404 Errors2013-01-10T20:33:36Z in response to SystemAdminI'm not aware of anything beyond:
which uses an example of the charting widget.