The DWR 2 story so far ...
Milestone 1 delivered Reverse Ajax, milestone 2 included Annotations and a Java API for writing Javascript.
Milestone 3 includes Accessibility support, Spring namespace support, deeper Webwork integration, and more demos.
This is an experimental new feature. The problem is that to a fully sighted person a page is random access. To someone using a screen reader, a page is sequential access, so if we change some text behind the current read point, the user with a screen reader will not notice.
DWR Util now publishes change events whenever it changes a section of a page, and there is a pluggable notification system to raise alerts of the change.
Currently there are 2 'HighlightHandler's.
So to try it out call:
dwr.util.setHighlightHandler(dwr.util.yellowFadeHighlightHandler);
And then use dwr.util.setValue()
, dwr.util.setValues()
, dwr.util.addRows()
or dwr.util.addOptions()
.
You can also specify a highlight handler at the point of invocation:
dwr.util.setValue("id", "value", { highlightHandler:dwr.util.yellowFadeHighlightHandler });
If you wish to invoke the highter manually, you can do that with the DWRUtil.highlight function as follows:
dwr.util.highlight("id");
Or
DWRUtil.highlight("id", { highlightHandler:DWRUtil.yellowFadeHighlightHandler });