View Full Version : [CLOSED][3.x] SERIOUS v3 breakage

6 Apr 2009, 7:44 AM
Hi folks... we did our daily v3 SVN updates today and experienced a very serious (for us) breakage.

We use DWR here, so we're using a DWR proxy (pretty much what you can find posted in the forums in the past, with some relatively minor changes for our needs). The issue, simply-stated, is that our DWR calls are never going through, nor are events firing on the proxy. Here's the proxy code:


Ext.ux.DWRDataProxy = function(inConfig){
Ext.apply(this, inConfig);

Ext.extend(Ext.ux.DWRDataProxy, Ext.data.DataProxy, {

dwrFunction : null,
loadArgsKey : "dwrFunctionArgs",

load : function(inParams, inReader, inCallback, inScope, inArgs) {
var dataProxy = this;
if (dataProxy.fireEvent("beforeload", dataProxy, inArgs) !== false) {
var loadArgs = inArgs[this.loadArgsKey] || inArgs;
var dwrFunctionArgs = [];
if (loadArgs instanceof Array) {
for (var i = 0; i < loadArgs.length; i++) {
} else {
for (var loadArgName in loadArgs) {
callback : function(inResponse) {
var records = inReader.readRecords(inResponse);
dataProxy.fireEvent("load", dataProxy, inResponse, inCallback);
inCallback.call(inScope, records, inArgs, true);
exceptionHandler : function(inMessage, inException) {
dataProxy.fireEvent("loadexception", dataProxy, inMessage,
inCallback, inException);
inCallback.call(inScope, null, inArgs, false);
this.dwrFunction.apply(Object, dwrFunctionArgs);
} else {
callback.call(inScope || this, null, inArgs, false);

});And here's a DataStore using this proxy:

wiView.tabA.itemsStore = new Ext.data.Store({
proxy : new Ext.ux.DWRDataProxy({
dwrFunction : Delegate.getItems,
listeners : {
beforeload : function(inDataProxy, inParams) {
inParams[inDataProxy.loadArgsKey] = [wiView.param1];
return true;
load : function(inStore, inRecords, inOptions) {
wiView.tabA.dataLoaded = true;
"Number of items: " + inRecords.length);
loadexception : function(inProxy, inMessage, inCallback, inException) {
animEl : "divSource", buttons : Ext.MessageBox.OK,
title : "error", msg : "error"
reader :
new Ext.data.ArrayReader({}, wi.ItemRecord)
});This store is bound to a Grid. Before this morning's v3 updates, this all worked 100%, and the code hasn't been changed recently. I've done some debugging and I can see that the beforeload event fires, but that's it... one that handler finishes, load in the proxy never gets called, nor does load in the store.

Is anyone aware of any v3 changes that might account for this? This is a major blocker for us at the moment so I'm hoping to get some kind of answer ASAP.


6 Apr 2009, 7:55 AM
Since it's usong server code it's hard to say, do you have an online example?

6 Apr 2009, 8:08 AM
Sorry, I don't, and I don't think there's any quick and easy way I could throw something together, if for no other reason than I have no place to host it.

Maybe the simple question to ask though is this: what could cause neither of the load events to fire? Because, at the end of the day, that's the basic problem. The GridPanel is a tab on a TabPanel, and when I flip to the tab I can see the loading mask appear, and as I said, I can see the beforeload event firing, but that's it, nothing beyond that. Can you think of anything that might cause that? I'll take wild-a** guesses at the moment :)

I'm going to have to revert the latest changes shortly if I can't otherwise come up with an answer, and I'm really hesitant to do, so shots in the dark are welcome at this point.

6 Apr 2009, 8:32 AM
Frank -

This is due to a change in the Ext.data.Proxy code. The load method has been removed in favor of doRequest. Instead of implementing load you will want to implement doRequest. This is to support the new enhanced writer support that has been added to the Ext.data package. We will look into providing a fix at the Ext.data.DataProxy level so that load is backwards compatible.

6 Apr 2009, 8:49 AM
I noticed that all of the posts to the server are tagged with "xaction". I was wondering if that would cause some people problems.

6 Apr 2009, 9:12 AM
Thanks Aaron... at first it didn't work, but then I looked at ScriptTagProxy and noticed you guys simply did:

doRequest : function(action, rs, params, reader, writer, cb, scope, arg) {
this.load(params, reader, cb, scope, arg);

Once I added that to my DWRProxy code everything worked... initially I tried to change load to doRequest and modify the argument list, but I must have botched something and made it seem like your answer was wrong, but in fact it was completely correct, so thanks very much :)