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 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 |
[ http://issues.apache.org/jira/browse/OFBIZ-411?page=all ]
Chris Howe updated OFBIZ-411: ----------------------------- Attachment: dojoPatch.patch dojoPatch.patch To kind of kick start implementation of some sort of ajax toolkit/framework, here is an edition to the e-commerce header that will, if the dojo variable is include dojo.js that should be put in the images/js/ library. It will then accept a dojoRequire string array that can be specified at the screen level and cycle through them to include the necessary modules. > 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 |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-411?page=comments#action_12446558 ]
Jacopo Cappellato commented on OFBIZ-411: ----------------------------------------- I don't know much of Ajax and dojotoolkit. I think it's nice to have this patch and Jira issue here as a kickstart for the ones that want to play with these tools. However I don't know if it would be a good idea to commit this patch in svn (and probably it was not intended for this) since it is specifically for one of the Ajax toolkits available and no clear decision has been taken by the community about what tools should be adopted. > 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 |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-411?page=comments#action_12446635 ]
Jacques Le Roux commented on OFBIZ-411: --------------------------------------- I started to look at it but as I don't know much (not to say nothing) about Ajax I believe I have understood that "Requires" is a method(?) to load components in Ajax. May you teach some about that Chris ? What is this patch intended for exactly ? Examples will be the better way I guess... Thanks > 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 |
In reply to this post by Nicolas Malin (Jira)
[ 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 |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-411?page=comments#action_12446715 ]
Jacques Le Roux commented on OFBIZ-411: --------------------------------------- Thanks for explanations Chris. BTW I think that having such informations in Jira is better than having them only in ML. We may also retrieve this informations from Nabble (Jira issues are in dev ML) in an unorganized way but have them a little bit organized here. > 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 |
Free forum by Nabble | Edit this page |