Comentários (4)

1 Mohamad Azhar comentou às Link permanente

Hi David,

 
Appreciate your post, really excellent as it clears all confusions related to dojo inclusion with worklight6.
 
I have create a Worklight 6 hybrid application, listed below is a series of tasks that I performed on it.
1) I built and deployed the project with the 'Provide Library Resources' checked and I get a list of missing files (a few stated below) in the dojo library requests console and the application works fine.
 
[[2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource:
/dojoLib/toolkit/dojo/dijit/form/DateTextBox.js
[2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource:
/dojoLib/toolkit/dojo/dijit/form/FilteringSelect.js
[2013-11-14 11:02:48] Application 'SampleBankingApp' requested a missing resource. Providing library resource:
/dojoLib/toolkit/dojo/dijit/Calendar.js]
 
2) I copied the missing files into the www folder keeping the folder structure as required, then I built and deployed the app with the 'Provide Library Resources' checked and I still get the same list of missing files in the dojo library requests console and the application also works fine.
3) Now I built and deployed by unchecking 'Provide Library Resources', when I tried to use the app it doesn't work, and the chrome console (where i use the mobile browser simulator) gives a series of errors like Failed to load resource: the server responded with a status of 404 (Not Found).
 
Whatever missing files it states in the dojo library requests console is in place inside the www folder, don't know whats going wrong.
I am using Eclipse Juno + Worklight6, any help would really be appreciated.
 
Thanks & Regards,

2 DavidDhuyvetter comentou às Link permanente

I tried this with dijit.Calendar and it seems to work. The files I put under www were:

 
www/dijit/_HasDropDown.js
www/dijit/Calendar.js
www/dijit/CalendarLite.js
www/dijit/form/DropDownButton.js
www/dijit/form/templates/DropDownButton.html
www/dijit/templates/Calendar.html
www/dojo/resources/blank.gif
 
it is important that the digit folder is directly under www, not under www/dojo

3 dhmlau comentou às Link permanente

(I posted a comment a minute ago but didn't get displayed here. Hope there's no duplicate)
Hi David,
Great article!
I'm wondering which build of WL Studio v6 you're using? MIne is 6.0.0.20130614-0631 but didn't see the dojo installation option in the creation wizard. Also, the dojo is still created under the app folder.

 
Thanks!
Diana

4 6AP2_Ciprian_Burca comentou às Link permanente

Hi,
I have a problem with adding the Dojo Toolkit to a new WL project. In the add JavaScript Libraries the "Add Dojo Toolkit" is disabled. I think this happen after the update to WL 6.1.0.01.

 
Can you please advise?
 
Thank you