• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting multiple rows.

 
sangu sam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be you should do delete operation from bottom to top. Looks like the indices are rearranged.
 
sangu sam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.Now it is working fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!