I've responded to your question on the DWR lists : http://www.nabble.com/using-Spring-MVC-with-DWR-tf3012602.html
---------- Forwarded message ---------- From: Sanjiv Jivan <[EMAIL PROTECTED]> Date: Jan 15, 2007 6:05 PM Subject: Re: [dwr-user] using Spring MVC with DWR To: [EMAIL PROTECTED] I've used (and liked) DWR but for the use case you describe, I would recommend using AjaxAnywhere. (http://ajaxanywhere.sourceforge.net/) . The basic idea is that you wrap areas of your JSP / JSF content with marker tags (called zones) and you submit the form / page using a AjaxAnywhere JS function that takes as arguments a list of "zones" that you want to be refreshed. Everything on the server is processed just like it normally is ( dispatched to the appropriate Spring MVC controller which returns a model and the view ). The AjaxAnywhere servlet filter transparently sends the content of the zones that need to be refresh based on the incoming request parameters and the one the zones listed are refreshed in the browsed. This works really well for traditional web MVC frameworks like Spring MVC, Struts, JSF in contrast to the Javascript centric web apps like Tibco GI, Dojo, YUI, Ext etc where I would recommend using DWR in conjunction with the javascript centric widgets. Check out the online demo's on the AjaxAnywhere site. Disclaimer : I am a commiter on this project but would not recommend it just because of that. I've already described the situations where I'd use DWR with a JS widget library or AjaxAnywhere. Sanjiv On 1/10/07, Nathaniel Rahav < [EMAIL PROTECTED]> wrote:
Hi All, Is anybody using DWR for displaying/submitting forms in Appfuse ? Since the examples for DWR integration in appfuse show a dedicated manager bean invoking methods on the service layer, I am wondering what people are doing about data binding and validation on the forms? It seems to me that the very elegant Spring solution of binding fields to the object and validating upon form submission is now lost and must be re-written in order to use DWR. Am I mistaken ? Is there a way to use Spring's FormControllers to display, and validate form submissions, by invoking them from DWR? Is there another AJAX driven way to display and submit forms ? It seems quite wasteful and redundant to me to rewrite my form submission pages, and to rewrite data validation modules for the DTOs to function properly. Thanks for the information Nat
