You might want to consider the gen2 PagingScrollTable from GWT Incubator. It associates an object with each row, which you can retrieve using getRowValue(int row).
On Fri, Dec 19, 2008 at 7:36 PM, Ed <[email protected]> wrote: > > I'm using a ScrollTable to allow a user to select an item to edit. > The ScrollTable displays name and description columns which the user > can sort by clicking on the column's header. The sorting presented a > problem because I needed to relate the row the user selected back to > an object in an ArrayList. Once a user sorts the column, the rows in > the ScrollTable's data table no longer match the index of the obect in > the ArrayList used to populate the table. I resolved my problem by > adding an index column to the ScollTable which I made invisible by > setting a "display:none" style attribute on every cell in the column. > This works OK, but I am wondering if there is a better solution. It > seems to me that this would be a fairly common ScrollTable issue. > > Ed > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
