Facebook | 17 May 13:56

Sylvie Villard added you as a friend on Facebook

Sylvie added you as a friend on Facebook.  We need to confirm that you know Sylvie in order for you to be friends
on Facebook.

To confirm this friend request, follow the link below: 
http://www.facebook.com/n/?reqs.php

Thanks,
The Facebook Team

___
Want to control which emails you receive from Facebook? Go to:
http://www.facebook.com/editaccount.php?notifications&md=ZnJpZW5kO2Zyb209MTA2NjgyMDQ4ODt0bz03MTgwMzI2OTM=
Johan Hoogenboezem | 17 May 12:14

basic authentication (the right way)

Hi,

We’re using basic authentication for our GI app. Before we started using DWR, we passed login credentials via the open() method on GI’s jsx3.net.Request object. With DWR, I expected something similar to be required. However, we ended up hacking engine.js like this:

 

      if (DWREngine.USER_NAME != undefined) {

        batch.req.open(batch.httpMethod, request.url, batch.async, DWREngine.USER_NAME,

          DWREngine.USER_PASSWORD);

      }

      else

        batch.req.open(batch.httpMethod, request.url, batch.async);

 

We would set DWREngine.USER_NAME and DWREngine.USER_PASSWORD after logging in successfully. This works, but I’ve never felt comfortable with it. It’s messy etc. etc. etc.

What is the recommended way for doing this? Something like options to be set for the engine?

 

 

Regards

Johan Hoogenboezem

No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1445 - Release Date: 2008/05/15 07:25 PM
Joe Walker | 16 May 18:14
Favicon

Serializing closures


In Javascript:

function delayedUpdater(message) {
  dwr.util.setValue("id", message);
}

dwr.engine.setActiveReverseAjax(true);
Remote.method(delayedUpdater, 4000 /* No callback */);


And on the server:

public class Remote {
  public void method(JavascriptFunction delayedUpdater, int delay) {
    // Fire off a new thread to do some work
    Thread work = new Thread() {
      public void run() {
        // Loop forever pinging the client
        int i = 0;
        while (true) {
          Thread.currentThread().sleep(delay);
          delayedUpdater.execute("Hello, World: " + (i++));
        }
      }
    }.start();
  }
}


In short: how about we create a new type: org.directwebremoting.io.JavascriptFunction, with associated converter logic so we can pass a function to the server for execution.

I was just doing some work on the dwr data store when I found myself needing something like this, and it seems like it could be generally useful.
Thoughts?

Joe.


jamurph | 15 May 14:52
Picon
Favicon

spring dwr configuration, init-params, SAXParseException


Hi,

I need to set an init parameter for DwrServlet but we are initialising the
DWR in spring and not in web.xml

this is a snippet of code and error message

can anyone help?

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd
       http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"
       default-autowire="byName">

    <dwr:controller id="dwrController" debug="false">
        <dwr:config-param name="allowGetForSafariButMakeForgeryEasier"
value="true"/>
    </dwr:controller>

2008-05-15 13:29:14,328 ERROR
[org.springframework.web.servlet.DispatcherServlet] - <Context
initialization failed>
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
224 in XML document from ServletContext resource [/WEB-INF/tin-servlet.xml]
is invalid; nested exception is org.xml.sax.SAXParseException:
cvc-complex-type.2.1: Element 'dwr:controller' must have no character or
element information item [children], because the type's content type is
empty.
Caused by: 
org.xml.sax.SAXParseException: cvc-complex-type.2.1: Element
'dwr:controller' must have no character or element information item
[children], because the type's content type is empty.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)

--

-- 
View this message in context: http://www.nabble.com/spring-dwr-configuration%2C-init-params%2C-SAXParseException-tp17252608p17252608.html
Sent from the DWR - Users mailing list archive at Nabble.com.
wesley jordan | 15 May 08:58
Picon

Firefox 2.0.0.14 dwr utils bug

Hi all,

I have abit of a strange problem with the dwr.util.removeAllRows and dwr.util.addRows methods.

The situation is this:

I have a table populated with a bunch of rows. Each row contains information and on the left of each row there is an image. If a user clicks on an image a javascript method is called which calls a 'dwr-exposed' bean to retrieve data and that data is used to build a table beneath the row (using dwr.util.removeAllRows and dwr.util.addRows) . The user can then click on the image again to remove the dynamically created table.

The problem i'm experiencing is this:

After a user clicks the image for the second time with the intent to hide the dynamically created table, the space that the dynamically created table occupied is never 'reclaimed'. So lets say that dynamically created table occupied 100pixels length beneath the selected row, upon clicking the image to hide the dynamically created table, there is still 100pixels space between the 2 rows. What's worse is that everytime the operation is repeated the space will grow by 100pixels. I've tested this on IE6,Opera 9.26 and Firefox 3 beta and they all work fine. I've scrutinised the output provided in Firebug and nothing shows up to indicate anything is wrong.

Any help with this is greatly appreciated

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
EQUITY INVESTMENT | 13 May 11:14
Picon

AWARD NOTIFICATION IS ATTACHED

AWARD NOTIFICATION IS ATTACHED

UK INTERNATIONAL LOTTERY

HOUSE 32 HILTON DRIVE,

LIVERPOOL, L70 1NL.

UNITED KINGDOM.

THE DESK OF THE PROMOTIONS MANAGER,

INTERNATIONAL PROMOTIONS/PRIZE AWARD DEPARTMENT,

REF: EKS255125600304 AND BATCH NO: 54/1017/I

 

Congratulations you have won the UNITED KINGDOM INTERNATIONAL LOTTERY, Kindly download the attached notification and get back to me immediately.

 

MARK JOHNSON

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
Favicon

Nest List DWR Client Side Problem

I have a java POJO/Object that consists of nested LIST (2 levels).  On the client side, using javascript, I always get an error when trying to get the innermost List.  That is, I can retrieve the outermost List easily, but when I go deeper and get the innermost List, I get an “ERROR” on the DWR test page.   Can someone give me an example on how to use nested LIST?

 

 

Tim

Dmitry Kudrenko | 12 May 12:54
Picon
Favicon

Long time processing in the DwrServlet.service()

Greetings

I am using DWR with Simple framework
(http://www.simpleframework.org/). It has own Simple API which is
different from servlet-api. But I use Adaptor pattern to convert
simple.Request to HttpServletRequest and HttpServletResponse to simple.Response.

Also I am using Reverse Ajax in my web application.

Simple request handler receives request and forwards it to the DWR
Servlet using DwrServlet.service(request, response) method. DWR
Servlet configured properly and it works.

Sometimes I have strange behavior: request is being processed 1 minute but
method on the class mapped to javascript works only 10 msec.

I received this statistic wrapping DwrServlet.service with timer1 and
adding timer2 to the my Java class.

timer1.maximum value = 1 minute (The maximum time is the same as maximum time for Reverse Ajax request)
timer2.maximum value = 10 msec.

This situation is hard to reproduce in my local version of the
application. But I have this statistic often in the live system. So it
is hard to debug it.

It seems the number of these errors depends on browser (can't
reproduce it with FireFox) and connection quality. (Not sure).

Have you idea where the request can be 60 sec in the
DwrServlet.service?

Thanks in advance.

--

-- 
Best regards,
Dmitry Kudrenko
ARDAS group (http://www.ardas.dp.ua)
Lance Java | 9 May 11:27

Re: Enable Dynamically named checkbox

You could either give each checkbox an id and dwr.util.byId(i + "cb").disabled = false

Or you can try
document.choiceForm[name].disabled = false

Cheers,
Lance.

2008/5/8 Lauren Riley <Lauren.Riley-ZbTXSL8HYdVKv7eTXmq09g@public.gmane.org>:

I have a list of objects that have ID's. I'm creating a checkbox for each, naming the checkbox id+"cb" as I iterator through the list. I am disabling the checkboxes to begin with. At a certain point in time, I want to enable the checkboxes one at a time. Is that possible with DWR? This is what I have now and it is not working. Anybody know how I could do this in DWR or how I could tweak this code to work? Thank you...

function enableCheckbox(){
var id = dwr.util.getValue("selectOutbuilding");
var name = id+'cb';
document.choiceForm.+ name + .disabled = false;
}


<c:forEach items="${outbuildings}" var="building">
<input type="checkbox" name="${building.id}cb" disabled="true">${building.description}</><BR>
</c:forEach>

__________________________________________
The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended recipient of this message, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message, and please delete it from your computer.


技术邮箱 | 9 May 04:37
Favicon

hello

hello
 
2008-05-09
技术邮箱
Lauren Riley | 8 May 21:31
Favicon

Enable Dynamically named checkbox

I have a list of objects that have ID's. I'm creating a checkbox for each, naming the checkbox id+"cb" as I iterator through the list. I am disabling the checkboxes to begin with. At a certain point in time, I want to enable the checkboxes one at a time. Is that possible with DWR? This is what I have now and it is not working. Anybody know how I could do this in DWR or how I could tweak this code to work? Thank you...

function enableCheckbox(){
var id = dwr.util.getValue("selectOutbuilding");
var name = id+'cb';
document.choiceForm.+ name + .disabled = false;
}


<c:forEach items="${outbuildings}" var="building">
<input type="checkbox" name="${building.id}cb" disabled="true">${building.description}</><BR>
</c:forEach>

__________________________________________
The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended recipient of this message, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message, and please delete it from your computer.


Gmane