Scenario:
 
- Sheet with 12 rows of data
- Select 7 rows
- Call backing bean delete function which also calls SheetState.resetSelected() after deletion
- 7 rows are gone
- The front end (_javascript_?) still thinks 7 rows are selected (if there were 7 rows left, they would all show selected - as it is 5 show selected).
- If I hit delete again, the backing bean errors out because it trys to delete 7 rows when there are only 5.
 
Since I called resetSelected() in backing bean I know the SheetState did get a new selectedRows object..
But apparently the _javascript_ then re-populated the SheetState's selectedRows list with the previous selections. I don't know how else to explain it but it breaks the sheets functionality.
 
 
John

Reply via email to