DWR version 1.0RC1 Released!
We've reached DWR version 1.0RC1. The list of changes for this release is slightly shorter than for previous releases:
- DWRUtil.js: has had lots of tweaks, several functions have been deprecated, generally because there are better versions, sometimes because they don't belong in DWR. We'll probably remove them for 1.0 final so if you think any functions should stay. Join the mailing lists and tell us.
- Better handling of collections: There is a new element in dwr.xml: <signatures> that allows you to specify method signatures in a JDK5 generics style even on JDK 1.3/1.4
- More Remoting Options: DWR now supports iframe remoting as well as XMLHttpRequest and you can set a timeout on a call.
- Big Website Update: Lots more documentation. Check it out.
- Lots of changes for the release have been to make DWR more maintainable and bug free.
Sun's comments of the future of AJAX
Greg Murray wrote an interesting article a few days ago about AJAX and some of the issues with writing AJAX websites. The article makes the following points about AJAX websites:
And those frameworks are arriving. DWR has just reached version 1.0RC1 and clearly having written most of DWR, I think it's the best Java and Ajax solution out there. It looks like Google agrees with me, but if you want options there is always Echo2 or JSON-RPC-Java.
This is one of the best reasons for using a tool like DWR. You don't need to get bogged down in discovering that Safari doesn't support XHR/POST or that various versions of IE have all sorts of quirks that you need to tak into account.
This is why DWR comes with its DWRUtil.js function that help you take data returned from the server and put it on your web page. DWRUtil.js is not a full-blown widget framework like Dojo - It is a set of easy to understand functions that create tables, lists and manipulate text and form fields.
Tell me about it! There are now a number of tools like greasemonkey scripts that help with this issue. But if you use DWR you should not need them at all. DWR has been debugged so you don't need to.
DWR takes security very seriously; using J2EE authentication and role based authorization, along with other security measures. I believe this makes the process of auditing what is allowed and what is dis-allowed easier than it was before the days of AJAX.