GWT incubator table data ordering issue -


i have implemented gwt incubator table following example @ http://zenoconsulting.wikidot.com/blog:17

this works great however, order of rows not same passed using list object. data in example set in following part of code:

public long showmessages(arraylist<message> list) {         long start = system.currenttimemillis();         // update count         countlabel.settext("there "+ list.size() + " messages.");         // reset table model data         tablemodel.setdata(list);         // reset table model row count         tablemodel.setrowcount(list.size());         // clear cache         cachedtablemodel.clearcache();         // reset cached model row count         cachedtablemodel.setrowcount(list.size());         // force page 0 reload         pagingscrolltable.gotopage(0, true);         long end = system.currenttimemillis();         return end - start;     } 

please provide solution fix issue.

awesome! thank you! somehow ignored part , internally down line code using hashmap manage table data not retain sort order. changed linkedhashmap , worked


Comments