Re: Problem with Dojo in struts2
On 29/01/2009, at 6:36 PM, Srikanth Goud wrote: Hi, I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. Have a look at the source of the page to see what's rendered. Is it the page you expected and does it contain javascript to load Dojo? If not, then it's a configuration simple configuration error. If it's there, can you please test it in Firefox with the FireBug plugin installed? That plugin allows you to inspect the requests (and many other useful things) and my guess is it's failing to find the Dojo javascript files, and so failing to initialise. If it made the requests okay, check if it requested any html that was accidentally decorated by Sitemesh (and became invalid). You may need a no-decorate setting on /struts/* (I can't recall what Tree uses) Finally, is the tree supposed to contain anything? Your example doesn't provide sufficient attributes. Also don't do too much at once; ensure sitemesh works, then tiles works, then that the widgets work. Hope that helps a little, Jeromy Evans - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem with Dojo in struts2
Srikanth Goud wrote: I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping Are those the *only* filters in your web.xml? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem with Dojo in struts2
newton.dave wrote: Srikanth Goud wrote: I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping Are those the *only* filters in your web.xml? Dave Hi Dave, filters in web.xml are:- filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping these are the available filters in web.xml Srikanth - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Problem-with-Dojo-in-struts2-tp21722133p21741075.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Problem with Dojo in struts2
Hi, I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern /filter-mapping In jsp page head s:head theme=ajax debug=true/ /head s:tree theme=ajax /s:tree and added library file sitemash. http://struts.apache.org/2.0.11.2/docs/sitemesh-plugin.html As mentioned in this document i have done every thing but nothing is displayed on bowser. And i read about decorators.xml is it necessary? I am using tiles could u help me out from this problem. Srikanth. -- View this message in context: http://www.nabble.com/Problem-with-Dojo-in-struts2-tp21722133p21722133.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: DOJO in struts2
Yes its working now. Thank you very much. On Tue, Dec 2, 2008 at 4:11 PM, Lukasz Lenart [EMAIL PROTECTED]wrote: 2008/12/2 Faraz Ali [EMAIL PROTECTED]: My struts version is struts 2.0.11.2. Below is my decorators.xml file: decorators defaultdir=/decorators excludes pattern/styles/*/pattern pattern/scripts/*/pattern pattern/images/*/pattern /excludes decorator name=layout page=layout.jsp pattern/*/pattern /decorator /decorators You should add also this: pattern/*ajax=true*/pattern pattern/scripts/dojo/*/pattern pattern/struts/dojo/*/pattern pattern/resources/*/pattern And below is my web.xml: filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern !-- dispatcherFORWARD/dispatcher -- /filter-mapping And add Struts cleanup before sitemesh filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter http://struts.apache.org/2.0.11.2/docs/sitemesh-plugin.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best Regards, Faraz Ali
Re: DOJO in struts2
2008/12/2 Faraz Ali [EMAIL PROTECTED]: My struts version is struts 2.0.11.2. Below is my decorators.xml file: decorators defaultdir=/decorators excludes pattern/styles/*/pattern pattern/scripts/*/pattern pattern/images/*/pattern /excludes decorator name=layout page=layout.jsp pattern/*/pattern /decorator /decorators You should add also this: pattern/*ajax=true*/pattern pattern/scripts/dojo/*/pattern pattern/struts/dojo/*/pattern pattern/resources/*/pattern And below is my web.xml: filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern !-- dispatcherFORWARD/dispatcher -- /filter-mapping And add Struts cleanup before sitemesh filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class /filter http://struts.apache.org/2.0.11.2/docs/sitemesh-plugin.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DOJO in struts2
Hi All, Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of javascript code which is referring DOJO. How to add DOJO support in struts2? What need to download? If i need to download DOJO toolkit, than which version? how i will integrate it with my application? -- Best Regards, Faraz Ali
Re: DOJO in struts2
2008/12/1 Faraz Ali [EMAIL PROTECTED]: Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of javascript code which is referring DOJO. How to add DOJO support in struts2? What need to download? If i need to download DOJO toolkit, than which version? how i will integrate it with my application? Struts2 version? Did you add s:head theme=ajax/ tag? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DOJO in struts2
yes, i added this. On Mon, Dec 1, 2008 at 7:23 PM, Lukasz Lenart [EMAIL PROTECTED]wrote: 2008/12/1 Faraz Ali [EMAIL PROTECTED]: Whenever i used any of the struts2 UI tag (with theme=ajax), nothing is rendered on the browser. And when i looked into the view source, there is lot of javascript code which is referring DOJO. How to add DOJO support in struts2? What need to download? If i need to download DOJO toolkit, than which version? how i will integrate it with my application? Struts2 version? Did you add s:head theme=ajax/ tag? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best Regards, Faraz Ali
Re: DOJO in struts2
2008/12/1 Faraz Ali [EMAIL PROTECTED]: yes, i added this. Struts 2 version? How did you map filter? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DOJO in struts2
My struts version is struts 2.0.11.2. Below is my decorators.xml file: decorators defaultdir=/decorators excludes pattern/styles/*/pattern pattern/scripts/*/pattern pattern/images/*/pattern /excludes decorator name=layout page=layout.jsp pattern/*/pattern /decorator /decorators And below is my web.xml: filter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class /filter filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping filter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern !-- dispatcherFORWARD/dispatcher -- /filter-mapping On Tue, Dec 2, 2008 at 12:24 AM, Lukasz Lenart [EMAIL PROTECTED] wrote: 2008/12/1 Faraz Ali [EMAIL PROTECTED]: yes, i added this. Struts 2 version? How did you map filter? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best Regards, Faraz Ali
Dojo With Struts2.
Hi All, Struts2 included with Dojo. Can you please provide me how to use Ajax using dojo in struts2. If possible can you please send some links for this implementation. Thanks, Sharath.
Re: Dojo With Struts2.
--- On Tue, 7/29/08, sharath karnati [EMAIL PROTECTED] wrote: Struts2 included with Dojo. Can you please provide me how to use Ajax using dojo in struts2. If possible can you please send some links for this implementation. Have you tried reading the documentation? As a starting point explore the Ajax tag documentation. S2.0: http://struts.apache.org/2.0.11/docs/ajax-tags.html S2.1: http://struts.apache.org/2.x/docs/ajax-tags.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dojo With Struts2.
Hi, Check the url http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml thanks -Original Message- From: sharath karnati [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 4:05 AM To: user@struts.apache.org Subject: Dojo With Struts2. Hi All, Struts2 included with Dojo. Can you please provide me how to use Ajax using dojo in struts2. If possible can you please send some links for this implementation. Thanks, Sharath. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some performance issues by using DOJO) Still we will create a sample application for testing the functionality of DOJO with struts2. Hope it will help us to decide the path.. :) Jermony can u share your exp of using YUI as we don't have much idea abt it ,like Its performance and intergation with struts2? i thik that will also help us to choose the path. we haven't given any thought of enhancing ftl. surely Tom we will also look in to this aspect.. any other suggestuion in this regard will be much appriciated.. -S On 4/22/08, tom tom [EMAIL PROTECTED] wrote: Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi [EMAIL PROTECTED] wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. if we will use dojo tags will it again populate the beans like struts2 do on each request?? or any other specific configuration which we have to take in to account?? --S On 4/21/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
umesh awasthi wrote: Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications I should mention here that there are other server-side frameworks that provide better integration for rich client-side widgets. This is not a strength of Struts 2 at the moment. If interested, start here: http://raibledesigns.com/rd/entry/comparing_jvm_web_frameworks_presentation We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some performance issues by using DOJO) The performance issues for Dojo were previously dominated by the library parsing your HTML to find and instantiate widgets and the lazy-loading of resources. They're costs of unobtrusive javascript. The new tags in Struts2.1 went to some length to provide better control over that process. I believe Dojo1+ has also made major performance improvements . Still we will create a sample application for testing the functionality of DOJO with struts2. Hope it will help us to decide the path.. :) Jermony can u share your exp of using YUI as we don't have much idea abt it ,like Its performance and intergation with struts2? i thik that will also help us to choose the path. YUI is great. It doesn't have the fancy widgets of other libraries but it is so well designed and well documented that it's a pleasure to use. Even the library's code is easy to understand. Musachy put me onto it. There's no issues using it with Struts2, as with any other typical client side library. Simply follow their examples. We initially created some struts2 tags for it but I don't use them any more : http://cwiki.apache.org/S2PLUGINS/yui-plugin.html (datetimepicker, autocomplete, submit, div, anchor, tabview) There are three major perceived drawbacks for YUI: - the widget set is small in number compared to other libraries. It grows faster than I can keep up, but it's not fancy compared to MooTools or Scriptaliciouis; - you need to learn object-oriented javascript. Properly. I get the impression this scares off non-programmers. - it's Yahoo. I have no problem with that as there's brilliant paid programmers behind it, but some people seem to have issues with such open-source projects. we haven't given any thought of enhancing ftl. surely Tom we will also look in to this aspect.. any other suggestuion in this regard will be much appriciated.. Don't discount Dojo without first trying to use it directly. It is different from YUI in that you can rely on their markup without getting heavily into the javascript until you need custom widgets. That has got to have its advantages for many projects. If you liked the struts tags you'll probably like using Dojo directly. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
thks Jeromy for valuable feedback hope it will solve our purpose.. -S On 4/22/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications I should mention here that there are other server-side frameworks that provide better integration for rich client-side widgets. This is not a strength of Struts 2 at the moment. If interested, start here: http://raibledesigns.com/rd/entry/comparing_jvm_web_frameworks_presentation We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some performance issues by using DOJO) The performance issues for Dojo were previously dominated by the library parsing your HTML to find and instantiate widgets and the lazy-loading of resources. They're costs of unobtrusive javascript. The new tags in Struts2.1 went to some length to provide better control over that process. I believe Dojo1+ has also made major performance improvements . Still we will create a sample application for testing the functionality of DOJO with struts2. Hope it will help us to decide the path.. :) Jermony can u share your exp of using YUI as we don't have much idea abt it ,like Its performance and intergation with struts2? i thik that will also help us to choose the path. YUI is great. It doesn't have the fancy widgets of other libraries but it is so well designed and well documented that it's a pleasure to use. Even the library's code is easy to understand. Musachy put me onto it. There's no issues using it with Struts2, as with any other typical client side library. Simply follow their examples. We initially created some struts2 tags for it but I don't use them any more : http://cwiki.apache.org/S2PLUGINS/yui-plugin.html (datetimepicker, autocomplete, submit, div, anchor, tabview) There are three major perceived drawbacks for YUI: - the widget set is small in number compared to other libraries. It grows faster than I can keep up, but it's not fancy compared to MooTools or Scriptaliciouis; - you need to learn object-oriented javascript. Properly. I get the impression this scares off non-programmers. - it's Yahoo. I have no problem with that as there's brilliant paid programmers behind it, but some people seem to have issues with such open-source projects. we haven't given any thought of enhancing ftl. surely Tom we will also look in to this aspect.. any other suggestuion in this regard will be much appriciated.. Don't discount Dojo without first trying to use it directly. It is different from YUI in that you can rely on their markup without getting heavily into the javascript until you need custom widgets. That has got to have its advantages for many projects. If you liked the struts tags you'll probably like using Dojo directly. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
Just to add my vote to the YUI loving camp. I started to port the S2 dojo plugin to dojo 1.x, but after playing with YUI I've abandoned it because YUI was a better fit for my needs. - Original Message - From: umesh awasthi [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, April 22, 2008 7:06 AM Subject: Re: Using DOJO in Struts2 Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some performance issues by using DOJO) Still we will create a sample application for testing the functionality of DOJO with struts2. Hope it will help us to decide the path.. :) Jermony can u share your exp of using YUI as we don't have much idea abt it ,like Its performance and intergation with struts2? i thik that will also help us to choose the path. we haven't given any thought of enhancing ftl. surely Tom we will also look in to this aspect.. any other suggestuion in this regard will be much appriciated.. -S On 4/22/08, tom tom [EMAIL PROTECTED] wrote: Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi [EMAIL PROTECTED] wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. if we will use dojo tags will it again populate the beans like struts2 do on each request?? or any other specific configuration which we have to take in to account?? --S On 4/21/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using DOJO in Struts2
Hi All, We are using Struts2 for our development,currently we are using struts-2.0.11.1 As we know that struts2 is using DOJO toolkit internally for ajax support we have previously used DOJO toolkit for UI develoment and it is a gr8 toolkit for ajax based application,with the announcement of DOJO 1.x some of the issues involved with the DOJO like previously it was heavy for loading have been improved significantly. Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? any suggestion or help in this regard will be much appriciated. S
Re: Using DOJO in Struts2
umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. if we will use dojo tags will it again populate the beans like struts2 do on each request?? or any other specific configuration which we have to take in to account?? --S On 4/21/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
umesh awasthi wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 I don't use Dojo in any production applications any more. After getting advice from others I have moved entirely to YUI. I prefer YUI's approach overall, but still appreciate Dojo's design. 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. Struts2 will be the same functionally in that it will accept request, set properties of your actions and setup the ValueStack and forward to/render your view. What you lose is the functionality that is contained within the ajax tags. The tags get values from the attributes and ValueStack and insert them into a template. Instead you'll need to get values from the ValueStack and insert them into your page (or own template). eg. you'll use s:property a lot more to populate attributes required by the dojo markup Have a look at the existing templates to get an appreciation of what they do. Also have a look at the thread Dojo plugin update using 1.1.0 framework in struts-dev. You do need to think about the separation between the client-side and server-side a little more. It is definitely more effort than having the tags to work with, but easier to extend, customise, debug and most importantly you'll be able to use Dojo's tutorials and usergroups directly. if we will use dojo tags will it again populate the beans like struts2 do on each request?? Yes, definitely. Struts doesn't know or care where the request comes from. or any other specific configuration which we have to take in to account?? I don't think so. I suggest you create a test application with one widget populated from a struts action before committing to this path though. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi [EMAIL PROTECTED] wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. if we will use dojo tags will it again populate the beans like struts2 do on each request?? or any other specific configuration which we have to take in to account?? --S On 4/21/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Any issues using latest Dojo with Struts2?
After thinking about this some more, I guess the best answer is to avoid it in the first place. Keep complex JavaScript in .js files. If the JavaScript in your JSP is using a feature like this, it probably belongs in a JS module. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 5:04 PM To: Struts Users Mailing List Subject: RE: Any issues using latest Dojo with Struts2? Oh, the templates? Yeah, if you tried to use that notation on a JSP page it would cause a problem. I'd imagine escaping the $ would work, although I haven't tried it. Dave --- Karr, David [EMAIL PROTECTED] wrote: The following link into the Dojo Book has an example. There are others throughout the book. The ${...} is substituted on the CLIENT side. http://dojotoolkit.org/node/3161 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:41 PM To: Struts Users Mailing List Subject: Re: Any issues using latest Dojo with Struts2? --- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? Not if you're not trying to combine the two versions; you can use naked Dojo in an S2 app just like you would in any other framework. I also see that Dojo uses ${...} references for variable substitution. Will that cause problems if this code is in a JSP? I'm not sure what you mean there; do you have a link to what you're referring to? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any issues using latest Dojo with Struts2?
Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? I imagine this might preclude trying to use the Struts2 tags that use Dojo widgets (or just need some additional config steps), so I guess I'd need to understand the impact of that. I also see that Dojo uses ${...} references for variable substitution. Will that cause problems if this code is in a JSP? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any issues using latest Dojo with Struts2?
--- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? Not if you're not trying to combine the two versions; you can use naked Dojo in an S2 app just like you would in any other framework. I also see that Dojo uses ${...} references for variable substitution. Will that cause problems if this code is in a JSP? I'm not sure what you mean there; do you have a link to what you're referring to? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Any issues using latest Dojo with Struts2?
The following link into the Dojo Book has an example. There are others throughout the book. The ${...} is substituted on the CLIENT side. http://dojotoolkit.org/node/3161 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:41 PM To: Struts Users Mailing List Subject: Re: Any issues using latest Dojo with Struts2? --- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? Not if you're not trying to combine the two versions; you can use naked Dojo in an S2 app just like you would in any other framework. I also see that Dojo uses ${...} references for variable substitution. Will that cause problems if this code is in a JSP? I'm not sure what you mean there; do you have a link to what you're referring to? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Any issues using latest Dojo with Struts2?
Oh, the templates? Yeah, if you tried to use that notation on a JSP page it would cause a problem. I'd imagine escaping the $ would work, although I haven't tried it. Dave --- Karr, David [EMAIL PROTECTED] wrote: The following link into the Dojo Book has an example. There are others throughout the book. The ${...} is substituted on the CLIENT side. http://dojotoolkit.org/node/3161 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:41 PM To: Struts Users Mailing List Subject: Re: Any issues using latest Dojo with Struts2? --- Karr, David [EMAIL PROTECTED] wrote: Isn't it the case that Struts2 integrates Dojo, but a version older than the latest Dojo version? Yes. Should I expect any difficulties if I try to use the latest Dojo in a Struts2 application? Not if you're not trying to combine the two versions; you can use naked Dojo in an S2 app just like you would in any other framework. I also see that Dojo uses ${...} references for variable substitution. Will that cause problems if this code is in a JSP? I'm not sure what you mean there; do you have a link to what you're referring to? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dojo-In-Struts2-Problem: IE works FF not...
Hi, I have a struts div-Tag with: This refreshes a jsp when the refreshSelectedCustomer topic is published. If this happens the sessionContext Action is called (As far as I understand it) In the selectedCustomer.jsp I have a href where I call a javascript which publishes the topic as well as a click on a table in the main jsp. Entfernen Javascripts: function mainJspFuntion() { // update context via ajax document.getElementById('selectedIpNbr').value = ipNbr; document.getElementById('contextAction').value = 'SET_SESSION_CONTEXT'; dojo.event.topic.publish(/refreshSelectedCustomer); } function removeSelectedIp() { document.getElementById('selectedIpNbr').value = ''; document.getElementById('contextAction').value = 'REMOVE_SESSION_CONTEXT'; dojo.event.topic.publish(/refreshSelectedCustomer); } In IE all works like expceted, but in Firefox I get a error: TypeError: event has no properties (no name)(undefined, undefined)search.js (line 206) run()dojo.js (line 4868) (no name)()dojo.js (line 4767) _4a5([Window search.action, __0, undefined, 4 more...])dojo.js (line 4841) _4b5()dojo.js (line 4855) forEach([[Window search.action, __0, undefined, 4 more...], [[Widget struts:binddiv, selectedCustomer] children=[1] extraArgs=Object _styleNodes=[0], refresh, undefined, 4 more...]], function(), undefined)dojo.js (line 3127) run()dojo.js (line 4878) (no name)()dojo.js (line 4767) publish(Object topicName=/refreshSelectedCustomer, undefined)dojo.js (line 4975) removeSelectedIp()search.js (line 105) onclick(click clientX=0, clientY=0)search.action (line 1) [Break on this error] throw _13||Error(_12); I have no clue where I shall look. Any advice? Thank you
Re: Dojo-In-Struts2-Problem: IE works FF not...
Any idea what event is referring to? musachy On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote: Hi, I have a struts div-Tag with: This refreshes a jsp when the refreshSelectedCustomer topic is published. If this happens the sessionContext Action is called (As far as I understand it) In the selectedCustomer.jsp I have a href where I call a javascript which publishes the topic as well as a click on a table in the main jsp. Entfernen Javascripts: function mainJspFuntion() { // update context via ajax document.getElementById('selectedIpNbr').value = ipNbr; document.getElementById('contextAction').value = 'SET_SESSION_CONTEXT'; dojo.event.topic.publish(/refreshSelectedCustomer); } function removeSelectedIp() { document.getElementById('selectedIpNbr').value = ''; document.getElementById('contextAction').value = 'REMOVE_SESSION_CONTEXT'; dojo.event.topic.publish(/refreshSelectedCustomer); } In IE all works like expceted, but in Firefox I get a error: TypeError: event has no properties (no name)(undefined, undefined)search.js (line 206) run()dojo.js (line 4868) (no name)()dojo.js (line 4767) _4a5([Window search.action, __0, undefined, 4 more...])dojo.js (line 4841) _4b5()dojo.js (line 4855) forEach([[Window search.action, __0, undefined, 4 more...], [[Widget struts:binddiv, selectedCustomer] children=[1] extraArgs=Object _styleNodes=[0], refresh, undefined, 4 more...]], function(), undefined)dojo.js (line 3127) run()dojo.js (line 4878) (no name)()dojo.js (line 4767) publish(Object topicName=/refreshSelectedCustomer, undefined)dojo.js (line 4975) removeSelectedIp()search.js (line 105) onclick(click clientX=0, clientY=0)search.action (line 1) [Break on this error] throw _13||Error(_12); I have no clue where I shall look. Any advice? Thank you -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo-In-Struts2-Problem: IE works FF not...
2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Any idea what event is referring to? musachy No not really. How can I find out, which event is used? The dojo.js is not really human readable...
Re: Dojo-In-Struts2-Problem: IE works FF not...
Well, it is on search.js line 206 ;) musachy On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote: 2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Any idea what event is referring to? musachy No not really. How can I find out, which event is used? The dojo.js is not really human readable... -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dojo-In-Struts2-Problem: IE works FF not...
2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Well, it is on search.js line 206 ;) musachy Ah, sometimes I'm blind. Firebug hide this info and I didn't take a closer look at my pastet content :-) On line 206 is this: // prevent refreshSelectedCustomer AJAX requests, if IpNbr is empty dojo.event.topic.subscribe(/refreshSelectedCustomer, function(event, widget) { var ipNbr = document.getElementById(selectedIpNbr).value; if (!ipNbr || ipNbr == ) { // event.cancel= true; } }); After I commented out the event.cancel all worked fine. A colleague of mine put this there. Is it necessary or can I simply skip it? Thanx alot :-)
Re: Dojo-In-Struts2-Problem: IE works FF not...
If you need to prevent the request you would need it. Topics have changed quite a bit between releases, if you are using 2.0.9, then the topic takes 3 parameters, and it is published before the request, after the request and when there is an error. http://struts.apache.org/2.x/docs/ajax-tags.html musachy On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote: 2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Well, it is on search.js line 206 ;) musachy Ah, sometimes I'm blind. Firebug hide this info and I didn't take a closer look at my pastet content :-) On line 206 is this: // prevent refreshSelectedCustomer AJAX requests, if IpNbr is empty dojo.event.topic.subscribe(/refreshSelectedCustomer, function(event, widget) { var ipNbr = document.getElementById(selectedIpNbr).value; if (!ipNbr || ipNbr == ) { // event.cancel= true; } }); After I commented out the event.cancel all worked fine. A colleague of mine put this there. Is it necessary or can I simply skip it? Thanx alot :-) -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dojo and struts2 s:combobox
Has anyone experienced a problem with s:combobox name=object.property? I think the . is throwing dojo for a loop. What happens is the onSelect event stops working if I use the . notation -- name=object.property Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]