Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo plugin is deprecated The Dojo plugin will be deprecated on Struts 2.1

 
Vamshi Jampala
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dojo plugin is deprecated The Dojo plugin will be deprecated on Struts 2.1

What does this mean ? Are they going for jQuery plugin or they are moving dojo jar to struts2 core.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that nobody was willing to support the Dojo plugin, for a variety of reasons (mostly the very old version of Dojo it used).

While the new jQuery plugin will be supported, I still believe that for all but the simplest usecases it's better to write JavaScript as JavaScript, and not wrap it up in tag libraries.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64980
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:it's better to write JavaScript as JavaScript, and not wrap it up in tag libraries.

If what David means is that it's unnecessary to wrap JavaScript in obfuscating tags, then I heartily agree. If he means that the use of a JavaScript library like jQuery is unnecessary, not so much.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I'm referring to the wrapping. Writing "naked" JavaScript in this day and age is wholly unnecessary. (And come on, you "know" me better than that ;)

I think tags are fine for really simple usecases ("click this link and something shows up over there"), but for much beyond that, it's really, really debatable. Even for the simple usecase it depends on JavaScript philosophy (degradation, when JS is loaded, etc.) and the tag library in question.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64980
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:(And come on, you "know" me better than that ;)

Absolutely! I just wanted to make sure no one could interpret your intention the wrong way!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic