The moose likes JSF and the fly likes Selecting multiple rows. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Selecting multiple rows." Watch "Selecting multiple rows." New topic
Author

Selecting multiple rows.

sangu sam
Greenhorn

Joined: Feb 02, 2008
Posts: 5
Hi,
I created a jsf datatable which fetch the values from database.For each row I had a selectbooleancheckbox.If I select multiple rows,I need to delete those rows.The problem I am facing is if I select two rows the first one has been deleted and instead of second one the row after that second one has been deleted.Every time it was happening like that.Can anyone help me?
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
May be you should do delete operation from bottom to top. Looks like the indices are rearranged.
sangu sam
Greenhorn

Joined: Feb 02, 2008
Posts: 5
Thanks a lot.Now it is working fine.
 
 
subject: Selecting multiple rows.
 
Threads others viewed
JTable - selecting multiple rows by selecting checkbox column
How to create a nested table in side a cell in data table
Struts Iterator Issue
Changing row color in jtable
Getting one Row from JOIN query
MyEclipse, The Clear Choice