Struts2 plugins - Dojo or jQuery or…?

≡放荡痞女 提交于 2019-12-04 14:44:48

It has worked fine for me to change the tags from dojo to jquery. In my (small)project only a few attibutes had to be changed.

The biggest problem for me has been that the tree tag doesn´t exist in jquery so I kept the old dojo tags for that part which has generated alot of conflicts between dojo and jquery. So I recommend that you should change ALL tags at once to jquery to avoid strange behavior.

best to use the struts2-jquery plugin found here

code.google.com/p/struts2-jquery-plugin/

I would suggest jQuery. I had the same problem working on a project the used Dojo, but found it to be so intrusive I switched to jQuery. With jQuery it's a lot easier to use as it only used the standard HTML markup instead of adding it's own tags like Dojo does. I also found a ton more documentation for jQuery then Dojo as well as some good guides on overcoming the IE6 crap we still have to code for. All in all I would highly recommend jQuery over Dojo in any project.

Cheers

rajeev

While migrating to JQuery we can't get same look and feel etc... like in case of autocompleter. Below are things missing in the default jquery autocomplete:

  1. Rows with alternate shades of light and dark gray
  2. Matches from starting key only, at present it searches with matching key from whole keyword
  3. To show combobox with down error

With dojo Plugin I have massive Problems with AJAX and File Uploads and JavaScript in AJAX Results.

With Struts2 jQuery Plugin it works well for me.

JQuery and Dojo both are competent and very much rich in the functionalities.Both the framework has their own architectural strenghs.

The first stable version of dojo 0.4 came up early and struts included dojo. Later on Jquery came up with lightweight and stable version, which suited better with Struts plugin based architecture. While dojo architecture had its own trajectory from 0.4 to 1.0-> 1.4 and struts2-dojo plugin made deprecated.

Both the Javascript libraries are very well maintained, enhanced and supported by community. It's just jquery which glues well with struts2 at the moment.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!