Originally posted by Bear Bibeault:
If I recall correctly from what (somewhat shallow) research I did into DWR when I was writing Ajax in Practice, the major advantage would be in making the calls. Using jQuery we could use $.getJSON() to initiate the request and get the automatically eval'd structure back.
With DWR, it would create a client-side proxy to a Java function so that, rather than making requests to a URL, you simply have a procedural-appearing API that abstracts the request from your code.
I think that's really neat and I was impressed with what I saw of DWR when I was looking into it, but not enough to make me want to actually adopt it. I'm finding the jQuery/JSON combination too easy to use to make me want to shift gears at this point.
[ March 11, 2008: Message edited by: Bear Bibeault ]
I'd say it's in the abstraction of that process behind a tidy API.Originally posted by Gregg Bolinger:
So I'm not seeing the benefit of DWR over that scenerio[sic].
Originally posted by Bear Bibeault:
I'd say it's in the abstraction of that process behind a tidy API.
Again, not enough to push me over the brink, but I can see the appeal.
I'm really interested to see Frank's response to this. With regards to the above, all too often we hear that "well, as things get more complex, Xyz framework really makes things easier".Originally posted by Gregg Bolinger:
Again, taking simple examples as these might not be the best way to determine better/worse but its a decent place to start.![]()
-- <br />Frank W. Zammetti<br />Founder and Chief Software Architect<br />Omnytex Technologies<br /><a href="http://www.omnytex.com" target="_blank" rel="nofollow">http://www.omnytex.com</a><br />AIM/Yahoo: fzammetti<br />MSN: [email protected]<br />Author of "Practical Ajax Projects With Java Technology"<br /> (2006, Apress, ISBN 1-59059-695-1)<br />and "JavaScript, DOM Scripting and Ajax Projects"<br /> (2007, Apress, ISBN 1-59059-816-4)<br />Java Web Parts - <a href="http://javawebparts.sourceforge.net" target="_blank" rel="nofollow">http://javawebparts.sourceforge.net</a><br /> Supplying the wheel, so you don't have to reinvent it!
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |