dwr

Can you reliably set or delete a cookie during the server side processing of an Ajax (XHR) call?

I have done a bit of testing on this myself (During the server side processing of a DWR Framework Ajax request handler to be exact) and it seems you CAN successfully manipulate cookies, but this goes against much that I have read on Ajax best practices and how browsers interpret the response from an XmlHttpRequest. Note I have tested on...

Please share your experiences of DWR 3.0 M1 RC2 ?

Hi, I am planning to use DWR 3.0 M1 RC2 release candidate for my application. The primary reason of using this version is that it nicely integrates with Spring 2.5 framework and requires least possible level of configuration ! If you have using particularly this version of DWR, I would appreciate if you can share your experiences (bene...

Javascript classes and DWR

I've been playing with DWR and converters for a while and I really wanted to map my Java classes to JavaScript classes. Using DWR converters, I have the option to point out what is the name of my JS constructor given a Java class. So far so good... The problem arises when my JS constructor is within a JS package-like name (just like YUI'...

How to group gwt-rpc calls ?

With DWR it is possible to group together several service calls into one single HTTP request : dwr batch feature This feature is very useful to reduce the latency of an ajax application. Is there a way to do something similar with GWT / GWT-RPC ? Thanks for your help ...

How to parse arrays of objects returned by DWR?

DWR handles lists of primitives quite straight forward. I could not find whether array of objects returned by a DWR method call represent a JSON object. Any clues? Or do I have to return a JSON string representing the array of objects back to the browser? ...

Does .net/C# have an equvilent Javascript Object Proxy/Serialization like DWR in Java?

I have some old code in Javascript that interfaces to Java DWR. I'm looking to port the back-end to .NET/C# possibly, and I was just wondering if there was an equivalent AJAX framework that would work in the same manner as the DWR framework in Java. ...

Is there a plugin or extension that allows to use DWR remote calls as a YUI Data Source?

Is there a plugin or extension that allows to use DWR remote calls as a YUI Data Source? ...

Does DWR support method calls with GET?

Does DWR support method calls with GET? So I can use http caching to cache the result of the call... Is that possible? ...

transparent batching remote calls in dwr

I want DWR to transparently batch all remote calls that are done in the course of handling the same event. The reason is that handling an event in Javascript must only take a short time and nothing else can happen during the same time. So if I am going to do many calls, I would like to DWR batch them transparenty. Is that possible? How?...

Why is Java giving me an IllegalArgumentException?

I'm using dwr and spring and I get this error: java.lang.IllegalArgumentException: Javascript name * is used by 2 classes I found nothing helpful on Google, do you know why I'm getting this error? <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr" http://www.directwebre...

DWR addRows() with Element ID's

Calling All DWR Gurus! I am currently using reverse Ajax to add data to a table in a web page dynamically. When I run the following method: public static void addRows(String tableBdId, String[][] data) { Util dwrUtil = new Util(getSessionForPage()); // Get all page sessions dwrUtil.addRows(tableBdId, data); } The new row gets crea...

Is it possible to manually set the command object in an @RequestMapping method before Spring binding?

I have a JSP that has a Spring form in it. The form's command object is added in the controller before the JSP is rendered. Spring binds the form in the JSP to this command object, and will correctly handle it when submitting a NEW instance. However, I would like to persist the command object via DWR (which also works correctly), an...

DWR 3 comet

Hi all, I currently develop with DWR 2, but I now want to try DWR 3. I don't understand how is possible to make comet with DWR 3. I've searched on Google many many times but I've not found any good examples. Could anyone help me? Thanks, Tom ...

Why can't Eclipse resolve the spring-dwr schema?

Eclipse is showing the following errors in my Spring's applicationContext.xml: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:configuration'. myappservlet-servlet.xml MyApp/src/main/webapp/WEB-INF line 23 XML Problem cvc-complex-type.2.4.c: The matching wildcard is strict, but...

Accessing DWR post data in a Spring Interceptor

I have a DWR action with a method signature as follows: String joinGroup(String groupId, String groupName); This is called via a DWR AJAX request and works fine. However, I am trying to write a Spring interceptor (works much like a ServletFilter) to do some authentication work before the DWR action is called. The interceptor is being...

What is the disadvantage of DWR?

While using DWR in a intranet, will disadvantages like perfomance or security issues occur? Direct web remoting is a tool which uses Ajax request to contact a server from a js file. ...

What is the use of SwallowingHttpServletResponse in DWR

Please explain the practical use of SwallowingHttpServletResponse and FakeHttpServletResponse in dwr util package ...

Which serverside Java technology to use with ExtJS

We are plannnig to upgrade the UI framework for our 6-8 year old application written using Struts/JSP/EJB to ExtJS. Just curious as to what is the most popular Java technology on the server people have been using. We were looking into several alternatives like DWR RestEasy Restlet Struts-Json We are diving more towards using DWR but ...

Is it possible to use DWR if the DWR servlet is deployed in a different war?

I wanted to use DWR from web application A, but the DWR servlet is in web application B. Is this possible? Is there any work-around? Thanks! ...

DWR like Javascript library for REST

Is there a Javascript library like DWR that can generate javascript stub for REST api. We are using Jersey/JSR-311 for REST on server and was wondering that instead of using libraries like Jquery or dojo if there is a library that can take a Rest class annotated using JSR311 annotations and create javascript stub like DWR does? ...