Hi,
I dont think you should be removing from the list while iterating at the
same time.
Create a separate list (deleteProductList) and replace the
productList.remove() call with deleteProductList.add(tmpData).
After you finish iterating productList iterate over deleteProductList
calling the
: problem with removing item from a paginated list
Also on the assumptions thats
= your ProductData class implements the equality and hashcode methods
= those methods use your 'id' field
= You have a ProductData constructor that takes the id field
you should simply be able to do
, 2009 1:59 PM
*To:* user-java@ibatis.apache.org
*Subject:* Re: problem with removing item from a paginated list
Also on the assumptions thats
= your ProductData class implements the equality and hashcode methods
= those methods use your 'id' field
= You have a ProductData constructor