views:

32

answers:

0

I am working on making a jsf datatable backed by a database. I am currently using a CachedRowSet to provide data. A command link allows the user to delete a line in the CachedRowSet by calling a method of the backing bean.

The delete method works fine, but whenever the user tries to delete the very first row of the datatable something curious will happen. The row itself is deleted just fine, but the datatable itself does not refresh - maintaining the deleted line.

All other rows will delete and refresh the table as expected.

No errors are created, and the page does refresh. I have even tested having a second datatable pulling from the same backing bean, which does include the updated CachedRowSet after the first row is deleted.

Has anyone else encountered this issue and figured out a way around it?