views:

1515

answers:

5

Since Apache Struts has deprecated Dojo plugin from Struts 2.1.x I am thinking to change everything to jQuery. I especially noticed the difference in sizes (170kb vs 19kb - something like that). I had troubles with IE browser with handling dojo scripts, is this happening also with jQuery (when user is working with the application for a long time, script stops running)?

I have a lot of dojo tags in my applications, and I use most of theirs attributes.

Has anyone had any experience doing that? What were the problems? What were the benefits? Downsides?

Does anyone has any better ideas of which plugin to include with Struts2?

Any answer will be great! Thanks.

A: 

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

Phill Pafford
+1  A: 

best to use the struts2-jquery plugin found here

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

Ab
+1  A: 

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.

Mark
I did not experience any problems with this, but I did used a lot of time to figure everything out... The documentation is very bad for Dojo plugin.
Trick
A: 

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.

LimetreeValley
A: 

While migrating to jquery we cann't get same look and feel etc... like in case of autocompelter below things missing in default jquery autocompleter:- 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.

rajeev