I thought my use case was fairly simple: 1. User selects a row in CellTable. 2. User makes modifications to the selection returned by selectionModel.getSelectedObject() 3. User updates the selected row with dataProvider.getList().set(i, newObjectSameKey) 4. Use case restarts at #2.
Pseudocode: // Fields private final ListDataProvider<T> dataProvider; private final SingleSelectionModel<T> selectionModel; // Problem - returns the 'old' cached object after dataProvider.getList().set(i, newObjectSameKey) return selectionModel.getSelectedObject(); Challenge: The challenge is that even though the given row remains selected, and is correctly re-rendered after #3, requesting selectionModel.getSelectedObject() returns the previous, before-the-update object. I did look at the code and does look like SingleSelectionModel responds only to user input. Is there a way to fix/augment it? Or selection model is just not fit for retrieving the currently selected object that was modified via ListDataProvider? Thanks! Slava -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/3a6404e7-c485-4259-9ffe-0d52613dda42n%40googlegroups.com.
