> Unfortunately during the disposal an error is thrown:
 > 069041 ERROR: qx.ui.table.TablePaneScroller[1039]: Modification of
 > property "parent" failed with exception: TypeError - this._states has
 > no properties
 >
 > Afterwards, the rows of the table will be gone (except for the
 > headers), but the rest of the widgets will remain there and won't
 > react any more to user or resize events.
 >
 > Is this a bug? Or do I have to do something special with the table
 > before disposing it?

I just joined this list a few days ago, so I can't reply to any of the 
original messages in this thread, so hopefully this sorted appropriately.

I traced the problem back to Table in the _cleanUpMetaColumns() function 
in 0.6.6.

What happens is the following: in my application, I have a panel that 
basically controls a specific module that gets attached to a tab in a 
tabview.  I don't want these panels floating around in memory, so I 
close them down when the tab is closed.  I make use of Table/TableModel 
objects (quite preferable to the ListView for a number of reasons).

When the user closes the tab, I dispose all objects, including the 
tables.  We get trouble in _cleanUpMetaColumns(), which is called from 
dipose() when Table attempts to remove the paneScroller object from 
this._scrollerParent (line 506).  For whatever reason, paneScroller is 
already disposed and thus we get an error when it gets down to the 
nittygritty.

I don't really know why the paneScrollers are already disposed at this 
point (I don't see where else they could have been disposed and I know 
I'm not disposing them manually), but it must happen at some point 
before _cleanUpMetaColumns(0) is reached in Table.dispose().

I'll leave that for others to discover.  I have a work-around, however.

Right before you dispose your Table object, call the following:

myTable._cleanUpMetaColumns(0);

At the very least, it removed the errors in my case.

James

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to