ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Odelya YomTov" <ode...@jpost.com>
Subject RE: problem with removing item from a paginated list
Date Fri, 24 Jul 2009 13:03:02 GMT

I tried your advice, but with no solution to my problem..

I problem is when writing the paginated list to the jsp, not in the JAVA code.




From: Jon Moores [mailto:jonathan.moores@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 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 iterate.



This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.

View raw message