Questions tagged [dwr]

DWR is a Java library that enables Java on the server and JavaScript in a browser to interact and call each other as simply as possible.

DWR: Easy Ajax for Java

DWR is an RPC library which makes it easy to call Java functions from JavaScript and to call JavaScript functions from Java (AKA Reverse Ajax).

It has a large user-base, active mailing list and has been used in many projects including the Walmart shopping site and American Airlines flight booking site.

DWR has a number of features like call batching, marshalling of virtually any data-structure between Java and JavaScript (including binary file uploading and downloading), exception handling, advanced CSRF protection and deep integration with several Java server-side technologies like Spring and Guice.

More Information:

Books:

329 questions
737
votes
38 answers

Maximum call stack size exceeded error

I am using a Direct Web Remoting (DWR) JavaScript library file and am getting an error only in Safari (desktop and iPad) It says Maximum call stack size exceeded. What exactly does this error mean and does it stop processing completely? Also any…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
42
votes
2 answers

How do I use Comet with Spring MVC?

I'd like to add some Comet/server push capabilities to a simple web application. I'm having trouble finding up to date information on how to do this. Can anyone point me to some examples, tutorials, blogs, or anything recent that walks you through…
leedm777
  • 23,444
  • 10
  • 58
  • 87
17
votes
4 answers

Is there a JavaScript API for XML binding - analog to JAXB for Java?

In Java, we work a lot with JAXB2. Object<->XML mappings are defined as annotations in Java classes: @XmlRootElement(name="usertask", namespace="urn:test") public class UserTask { @XmlElement(namespace="urn:test") public String getAssignee()…
lexicore
  • 42,748
  • 17
  • 132
  • 221
17
votes
3 answers

Reverse AJAX (Comet) and Spring MVC vs. Scala/LIFT?

There is a demo by IBM that shows how easy Reverse AJAX can be used with DWR 2. On the other hand, Scala/LIFT comes with built-in Reverse AJAX capability. Question: Any experience if this works fine with Spring MVC? Question: If you'd start from…
Ta Sas
  • 9,573
  • 15
  • 51
  • 73
16
votes
4 answers

What is session in Java?

So far I understand Httpsession concepts in Java. HttpSession ses = req.getSession(true); will create a session object, according to the request. setAttribute("String", object); will, bind the 'String', and value with the Session…
user405398
14
votes
3 answers

Logging user activity in web app

I'd like to be able to log user activities in a web app. I'm currently using log4j which works well for logging errors etc, but I'm unsure what the best approach is to log the user, executed servlet method, and method params. I'm using spring…
James
  • 1,720
  • 5
  • 29
  • 50
14
votes
1 answer

Can someone explain the Spring web.xml file?

I'm new to Java Enterprise and to Spring but I have a strong grasp of standard Java. I am looking through an existing web application project. The project uses Tomcat/Spring/Hibernate which I understand is fairly common. It also uses DWR for remote…
KyleM
  • 4,445
  • 9
  • 46
  • 78
14
votes
8 answers

Alternatives to DWR (www.directwebremoting.org)

I've been a big of DWR (www.directwebremoting.org) in the past and have used it on a few projects. It makes AJAX easy by creating javascript proxy / stubs to java classes on the server. While DWR has been around for years it seems to have slowed…
sub
12
votes
3 answers

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 …
Robert Campbell
  • 6,848
  • 12
  • 63
  • 93
12
votes
2 answers

Javascript: wait until ajax request finishes to close page

I would like the browser to keep the page open until the ajax requests are sent. This is what I imagine it would look like var requestsPending = 0; window.onbeforeunload = function() { showPleaseWaitMessage(); while(requestsPending >…
maxdj
  • 427
  • 2
  • 5
  • 15
12
votes
6 answers

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.
user67722
  • 3,217
  • 5
  • 24
  • 20
10
votes
1 answer

Different between dwr and jquery ajax?

I would like to know more about using Ajax with DWR and Jquery Ajax in Java. Is there any advantage over the other?
Prathap
  • 717
  • 2
  • 8
  • 25
8
votes
2 answers

comet vs pubsub..?

may i know what is the different between these 2 approach ? can explain in lay man terms?
cometta
  • 35,071
  • 77
  • 215
  • 324
7
votes
3 answers

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…
Peter
  • 29,498
  • 21
  • 89
  • 122
7
votes
4 answers

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…
Alexandre Victoor
  • 3,104
  • 2
  • 27
  • 27
1
2 3
21 22