You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by John <jo...@jak.com> on 2006/06/26 05:38:59 UTC

Tobago sheet selections seem to repopulate SheetState after delete

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