On Sunday 15 March 2009 08:37:12 Michael Finney wrote: > Hi, > > Reading from below "we want users to embrace and know JQuery", that's a > powerful vision. > > I have thoughts about creating something with others that will be around > for at least a couple years. In a few weeks, I plan on starting this > project. > > I've heard great things about the Google Web Toolkit and thought about > using it for this next project. The other people I plan on working with > like working with Java a lot more than JavaScript. > > As someone pointed out to me, jquery and Google Web Toolkit (GWT > http://code.google.com/webtoolkit/ ) are very different. > > Will using GWT clash with struts2 focusing on jQuery? I wouldn't think so. > > [OT?]Will using GWT tie our hands and thus not avail ourselves of stuff > jQuery has available? > > Architectural / technological choices like these are always interesting. :) > > Thanks for your help.
There was a GWT plugin at one point, but it doesn't appear to be working. I've not used GWT myself, so I can't really attest to it's usefulness. Knowing that it is used at Google for their own apps, I'm sure it scales up well. The reason I've stayed away from it is that it seems much more intrusive to me than JQuery. In my mind it fits more as an auxilliary plugin than JQuery. JQuery can be brought into a project with very little effort. It is much more thin, to me it is like Prototype. It provides simple utilities without populating the JS namespace and it communicates between your server using making no assumptions about the format of the data being sent back and forth. If you want to send and receive JSON, HTML, XML or just some raw text that's fine. On the server, you don't need to know that you're sending to JQuery and in the browser. Within the HTML, JQuery is only concerned about the ID attribute and/or the class. To add to that, the entire library is usually made up of a single JS class, so there is little concern about clashing namespaces. These factors lead to an app that can degrade nicely if the user has javascript disabled. If your question is whether or not you can use the two together, my gut feeling is that the two would probably play nicely. But the non-intrusiveness of JQuery is the main reason I think it makes for a good AJAX plugin for Struts2. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org