Re: problem with removing item from a paginated list

2009-07-24 Thread Brandon Goodin
jonathan.moo...@gmail.com] > *Sent:* Friday, July 24, 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 hashcod

RE: problem with removing item from a paginated list

2009-07-24 Thread Odelya YomTov
: 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

Re: problem with removing item from a paginated list

2009-07-24 Thread Jon Moores
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: productList.remove(new ProductData(workingItemId)); no need to it

Re: problem with removing item from a paginated list

2009-07-24 Thread Jon Moores
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 prod