Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struts2 plugins - Dojo or jQuery or...?

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.

like image 824
Trick Avatar asked Nov 28 '25 21:11

Trick


2 Answers

best to use the struts2-jquery plugin found here

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

like image 70
Ab. Avatar answered Nov 30 '25 09:11

Ab.


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

like image 29
Phill Pafford Avatar answered Nov 30 '25 09:11

Phill Pafford



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!