google-code-export / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Connection#addConnectionListener(ConnectionListener) does not work #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The native method Connection#addConnectionListener(ConnectionListener)
casts the implementation of the ConnectionListener interface to the
conn and then tries to add listeners which fails with an exception.
Instead the connection itself should be the target of this action.

@ Line 77 in  com.gwtext.client.core.Connection

   var conn = listen...@com.gwtext.client.core.JsObject::jsObj;

works if this is used instead:

   var conn = th...@com.gwtext.client.core.JsObject::jsObj;

Further: the implementation of the 'requestcomplete' method @ line 85
to 89 attempts to return the "response.responseXML" as a String which
will fail with an exception since its not a string but a DOM object.
If this is replaced with "response.responseText" the method will work
as intended. 

Original issue reported on code.google.com by intern...@gmail.com on 22 Aug 2007 at 2:00

GoogleCodeExporter commented 9 years ago
Made above fixes.

Original comment by sanjiv.j...@gmail.com on 29 Aug 2007 at 3:09