ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: problem with removing item from a paginated list
Date Fri, 24 Jul 2009 13:28:52 GMT
Don't use the PaginatedList. It's deprecated. You should just use the
queryForList with the max and skip parameters. You get back a basic list.
Then you can do what you want with it. If your jsp problem still exists at
that point then it is something other than iBATIS.
Brandon


On Fri, Jul 24, 2009 at 8:03 AM, Odelya YomTov <odelya@jpost.com> wrote:

>  Hi!
>
> 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.
>
>
>
> Thanks!
>
>
>
> *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.
>
> Thanks
>
> Jon
>
>
>
>
>
> ************************************************************************************
> This footnote confirms that this email message has been scanned by
> PineApp Mail-SeCure for the presence of malicious code, vandals & computer
> viruses.
>
> ************************************************************************************
>

Mime
View raw message