AjaxAnywhere is designed to turn any set of existing JSP or JSF components into AJAX-aware components without complex JavaScript coding.
In contrast to other solutions, AjaxAnywhere is not component-oriented. You will not find here yet another AutoComplete component.
Simply separate your web page into multiple zones, and use AjaxAnywhere to refresh only those zones that needs to be updated.
Advantages:
Less JavaScript to develop and to maintain. Absence of commonly accepted naming convention, formatting rules, patterns makes JavaScript code messier then Java/JSP.
It is extremely difficult to debug and unit-test it in multi-browser environment. Get rid of all those complexities by using AjaxAnywhere.
Easy to integrate. AjaxAnywhere does not require changing the underlying application code.
Lower technical risk. Switch whenever you need between AJAX and traditional (refresh-all-page) behaviour of your web application. Your application can also support both behaviors.
Default graceful degradation. You do not need to develop another intreface for older browers support. If XMLHttpRequest is not available, application will keep working in traditional way, refreshing the entire page.
JavaScript received by AJAX is treated in a special way. AjaxAnywhere executes it via eval(""), it is also able to extract the declared functions into the proper context. (as if the page was reloaded completely). However, it is impossible to execute document.write() command inside AJAXable zone.
The zones to reload might be known before submitting the request. In this case, override AjaxAnywhere.getZonesToReload() JavaScript function on the client-side. No additional server side logic is necessary.
response.sendRedirect() during Ajax request is transformed into location.href=.. JavaScript commmand.
Home page: http://ajaxanywhere.sourceforge.net/

3 Users have rated as useful.
Login to rate this answer.