I think I figured it out. I traced back through the call stack when it goes
to render the widgets and found that the table's parent had both the old and
new tables as children. One of the tables was the correct one and the other
was the one I disposed. I changed my reloadTable method to the following and
it worked:
reloadTable : function() {
        // clear the table model's row cache
        this.__table.getTableModel().clearCache();
        this.remove(this.__table);
        
        // delete the existing table/model
        this._disposeObjects("__tableModel", "__table");
        
        // create table and model from scratch
        this.__tableModel = new controlcenter.Model.List.TableModel();
        this.__tableModel.addListener("metaDataLoaded", this.__createTable, 
this);
},


I'm not sure of the differences between 1.0.1 and 1.1, but I know that I
wasn't getting errors in 1.0.1. It seems I just need to remove a widget from
a layout prior to calling disposeObjects on it.
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Problem-with-refreshing-remote-table-tp5005384p5010310.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to