[ http://issues.apache.org/jira/browse/OFBIZ-411?page=comments#action_12446658 ] Chris Howe commented on OFBIZ-411: ----------------------------------
Dojo is decently documented here. http://manual.dojotoolkit.org/WikiHome/DojoDotBook/BookIntroduction But as far as working it into how things run within OFBiz and the decorator patterns most of the stuff in Dojo to work efficiently need to be loaded into the <head> of a webpage. So, to get it to work, Include the following in your screen definition: <screen name="myscreen"> <section> <action> <set field="dojo" value="true"/> <!--the patch needs to be changed to look for the dojo being equal to true rather than just existing--> <set field="dojoRequire[]" value="dojoPackage1"/> <set field="dojoRequire[]" value="dojoPackage2"/> <set field="dojoRequire[]" value="dojoPackage3"/> </action> <widget> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <include-screen name="myDojoMarkedUpScreen"/> </decorator-section> </decorator-screen> </widget> </section> </screen> Each of those packages are then available to you. Adding a <decorator-section-include name="head"/> into the decorator might be beneficial as well to put additional javascript for the io interactions. > Add initial support for dojotoolkit > ----------------------------------- > > Key: OFBIZ-411 > URL: http://issues.apache.org/jira/browse/OFBIZ-411 > Project: OFBiz (The Open for Business Project) > Issue Type: New Feature > Components: ecommerce > Reporter: Chris Howe > Priority: Minor > Attachments: dojoPatch.patch > > > Give the option to utilize the dojo toolkit in the ecommerce application as > POC as well as pushing ajax usage into OFBiz. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
