Hi. I use GWT to implement "Manage Shopping Cart" case. To display cart's contents, I use FlexTable. -------------- Item name | delete link -------------- In order to delete an item, I send item's name along with the current row of the table to the RPC service. The service deletes the item and returns row's value back to the client. Then I have this call: contentsFlexTable.removeRow(row); The problem with this approach is : Suppose I have two rows in the table, row #1 and row #2 And suppose I deleted row #1 first, this works. The current row value for row #2 is "1" So, clicking on delete link of row #2 will remove the item from datasouce, but this doesn't remove the row from FlexTable. How to over come this problem? Do you suggest a better approach? Assume I don't pass row's value to the service, how would I know which row to remove upon clicking on delete? Thanks in advance.
No, tomorrow we rule the world! With this tiny ad: