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
0
votes
2 answers

Handling java List in dwr addRows function

I am calling ajaxcontroller to get data from server. ajaxController.fetchCounts(callFetchcounts); callFetchcounts, this function will be called once i got the data. I am handling it like this: var callFetchcounts = function(data) { if( data.length…
0
votes
1 answer

How to setup ajaxFilter in DWR?

I create a DWR ajaxfilter, but not sure how to config it with Spring. DWR version is 2.0.1, and i hope config it as a globel filter, so when session is expired, i can catch this exception in client side. package com.gbtags; import…
terry
  • 301
  • 3
  • 17
0
votes
1 answer

No parameters on DWR methods signature

I'm having some errors at runtime, from DWR methods with no parameters. The error looks like: [exec] 12:21:56,372 ERROR [SignatureParser] Parameter mismatch parsing signatures section in dwr.xml on line: public String…
Esteve Camps
  • 1,113
  • 1
  • 10
  • 20
0
votes
1 answer

Ajax call freezes UI in internet explorer but works fine in firefox

I'm making an AJAX call (JSP page in Savvion Business Manager) and I want to show the LOADING SPINNER while AJAX request is processed It's working fine in Firefox, but in Internet Explorer the UI freezes until the response is received in callback…
ammar26
  • 1,584
  • 4
  • 21
  • 41
0
votes
1 answer

how to customize dwr.util.useLoadingMessage() in DWR?

I have to customize the dwr.util.useLoadingMessage(), now it is coming in upper right corner with a red background. now i have to change this to middle of the screen. i have googled it but couldn't get the exact solution thanks in advance.
Ramesh Kotha
  • 8,266
  • 17
  • 66
  • 90
0
votes
1 answer

Reverse Ajax + Spring MVC

I have very unique requirement in my web apps. I have two web apps for eg. webapp1 and webapp2. In webapp1 we are gathering some info and pass it to webapp2. Webapp2 process this info and when complete, has to inform back to webapp1 that all data…
user509755
  • 2,941
  • 10
  • 48
  • 82
0
votes
2 answers

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!
David García González
  • 5,164
  • 8
  • 29
  • 35
0
votes
1 answer

How to add row at the top with DWR addRows function

I am following this example http://directwebremoting.org-demo/reverseajax/peopleTable.html Here it is adding the rows to the end of the table. But my requirements is i have to add at the top. Every new row should be a first row. please help me, i…
Ramesh Kotha
  • 8,266
  • 17
  • 66
  • 90
0
votes
1 answer

from dwr.java to javascript obatain a null object

This is my dwr.xml .... .... and this is my class Person public class Person implements Serializable{ private int id; private String…
davideagostini
  • 111
  • 3
  • 14
0
votes
2 answers

Make DWR pass a null value, rather than converting to false

I am working with DWR inside the context of a Spring 3.x Web MVC application, where my dwr-beans.xml file declares a bean like this: The…
Steve Perkins
  • 11,520
  • 19
  • 63
  • 95
-1
votes
1 answer

Why is DWR asynchronous? What can I do?

While opening 2 web pages (http://localhost/chat/test.jsp), I'm sending a message through the first page, but the second cannot receive it immediately. Only when I send a message through the second one I can receive the message the first page has…
shaoyi he
  • 107
  • 1
  • 9
-1
votes
1 answer

Configuring DWR?

I am new to DWR and want to implement a chat application and use DWR for that. I followed this turorial to configure it. I have put the war file in my webapps and started the server. I'm getting the classes when I used…
user630209
  • 1,123
  • 4
  • 42
  • 93
-1
votes
2 answers

Properly using bindCallback with RXJS6 and DWR

I'm currently using bindCallback the following (now deprecated) way: const someMapping = (data) => { return { ... }}; public someCall(id) { // Foo.someFunction is function with callbacks return this.toObservable(Foo.someFunction, someMapping,…
Bojan Kogoj
  • 5,321
  • 3
  • 35
  • 57
-1
votes
1 answer

DWR vs Websockets

We currently use DWR but we have problems due to its inability to use POST (it forces the use of GET when script tag is enabled) so we're thinking to migrate to HTML5 WebSockets. What are the pros and cons of the two technologies? I couldn't find…
algiogia
  • 936
  • 2
  • 14
  • 40
1 2 3
21
22