PDA

View Full Version : [FIXED] Bug in TreeTableBinder?



zsulkins
19 Aug 2008, 1:43 AM
I am using GXT 1.0.2.
When I change (update) model in a store I do not see changes in TreeTable. While debugging I found out that TreeTableBinder.update(M model) method is called:

@Override
protected void update(M model) {
TreeTableItem item = (TreeTableItem) findItem(model);
updateItemValues(item);
updateItemStyles(item);
super.update(item, model);

seems, that item values are updated from old model in item and only than model in item is replaced. When I changed this method as:

@Override
protected void update(M model) {
TreeTableItem item = (TreeTableItem) findItem(model);
super.update(item, model);
updateItemValues(item);
updateItemStyles(item);
}

everything seems works for me.

Zahar

darrellmeyer
20 Aug 2008, 4:48 PM
Fix is in SVN.