PDA

View Full Version : [OPEN] [CLOSED][3.??] write event not fired on restful when create action is done



ypwu1
4 Sep 2009, 5:24 AM
code under:


var proxy = new Ext.data.HttpProxy({

api: {
read : {url:'/bookmark/list',method:'GET'},
create : {url:'/bookmark',method:'POST'},
update: {url:'/bookmark/update',method:'PUT'},
destroy: {url:'/bookmark/delete',method:'DELETE'},
}
});
var store = new Ext.data.Store({
id: 'user',
restful: true,
proxy: proxy,
reader: reader,
writer: writer,
listeners: {
write : function(s, action, result, response, rs) {
s.remove(rs);
App.setAlert(response.success, response.message);

}
}
});

there is no write event fired when create action is triggered. but firebug shows it works find server returns 200 and response JsonData corrects as respected. any1 can tell if its a bug or not , and give me a solution. I need this to be fixed asap.

evant
6 Sep 2009, 6:34 AM
Please post a proper test case: http://www.extjs.com/forum/showthread.php?t=71015

mjlecomte
18 Oct 2009, 8:42 AM
This thread has been in the INFOREQ status for some time with no new information posted. I'm going to update the status to CLOSED.