On Fri, May 14, 2010 at 11:18 PM, Bob Schellink <[email protected]> wrote:

> Hi Gilberto,
>
> Since you are using OpenJPA you might want to read the last comment
> here[1]. Basically OpenJPA
> returns read-only lists from queries so when Click tries to reorder the
> list, it trips over the USO
> exception.
>
> There are various options available to work around this.
>
> - Copy the result list from OpenJPA into a new list and pass that to Click
> -> new
> ArrayList(openJPAList).
>
> - Perform sorting manually in a DAO or service layer For example perform
> sorting in the DB then
> inform Table that the rowList is already sorted -> table.setSorted(true);
>
> - If you have a very large result set you might want to use a
> PagingDataProvider (introduced in
> 2.2.0). Here is an example[2] with sourcecode[3]:
>
> Does that help?
>
>
Yes, I will try the second option.

Thanks,

Gilberto

Reply via email to