I am about to drop the idea of using DWR. But before I did I wanted to ask.
I would like my Java class to return a dynamically generated HTML snippet, not just data. DWR seems to return back data only. I want HTML structured data. Of course I could do this, but there is no JSP with DWR. I would have to hand code string concatenations right in the Java class. Am I just stuck in my MVC pattern world?
At this point it seems like it is better to go with directly using the XMLHttpRequest object myself. Then I can use Struts/Servlets and JSPs to create snippets or otherwise structured data as I wish.
Maybe DWR is not the answer? Am I missing something?
The squeaky wheel gets the grease. Well, that or replaced...
The whole point of DWR is to approximate an RPC mechansim to call Java methods using Ajax as a transport mechanism. If you are planning to return HTML snippets generated via JSP, DWR is massive overkill.