The DWR promise is "we won't let the Internet touch your code without your permission". Whilst we could do all sorts of things automatically, we prefer to keep to a simple promise like that to keep things safe.
Joe.
On Sat, Feb 21, 2009 at 1:49 AM, Ole Ersoy
<ole.ersoy@...> wrote:
Hi,
I'm playing around with DWR, and noticed that if I don't declare a converter for the return type of a remoted method, exceptions like this happen:
2009-02-20 19:35:53,051 [http-80-1] WARN org.directwebremoting.dwrp.BaseCallMarshaller - --Erroring: batchId[1] message[java.lang.IllegalArgumentException: Missing method or missing parameter converters]
However for a method like:
public ITypedObject readTypedObject()
{
return instanceOfITypedObject;
}
If I run readTypedObject() without declaring a converter for ITypedObject, the instanceOfITypedObject is still returned to the callback handler of readTypedObject(),
it's just that the exception is also propagated to the browser, so I get an error alert.
So DWR wants me to declare a converter for ITypedObject, although it still gets the job done without it.
It seems like DWR would be simpler to work with if I did not have to declare the ITypedObject converter. So I'm just wondering whether it's something that has been considered?
Cheers,
- Ole
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...