File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Dojo plugin is deprecated  The Dojo plugin will be deprecated on Struts 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dojo plugin is deprecated  The Dojo plugin will be deprecated on Struts 2.1" Watch "Dojo plugin is deprecated  The Dojo plugin will be deprecated on Struts 2.1" New topic
Author

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

Vamshi Jampala
Ranch Hand

Joined: Feb 23, 2008
Posts: 40
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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!

 
 
subject: Dojo plugin is deprecated The Dojo plugin will be deprecated on Struts 2.1
 
Similar Threads
struts 2: ajax theme problem
how to apply theme as ajax to the jsp form with struts2-core-2.1.6.jar used struts 2 application ?
Dojo plugin deprecated on Struts 2.1: why ?
Struts 2 Dojo autocompleter not working in Struts 2.0.14?
autocompleter tag...not working out. Please help S2