Looks to me like there a few things that need to be changed when sorting is involved also. For now I found the following, it works for me now, but its possible that i'm wrong, please correct me if I am:
 - the dataset size needs to be fetched independently from the actual data
 - the  t:dataTable should preserve the sorting and the dataModel.

The first one I needed, because I was asking for the row count before the table is rendered, and the second one its not realy clear to me why is needed, I mean why the "preserveDataModel" should be "true", it works only like this.

Any thoughts?

PS: i'm refering to this wiki page: http://wiki.apache.org/myfaces/WorkingWithLargeTables

Catalin Kormos <[EMAIL PROTECTED]> wrote:
Thanks Simon for yo ur reply.

It sounds trivial, but i can't get it to work. I can't seem to find the place where to store the sorted column's name and the sorting type, ascent/descent. Looks like every time the data is fetched out before the sorting options are established, or the first sorting change doesn't have any affect, like, I do click on a column, but the sorting doesn't take place, then i use the data scroller to move to another page to see that the sorting did happen.... I would greatly appreciate an advice.

Thanks,
Catalin

Simon Kitching <[EMAIL PROTECTED]> wrote:
Catalin Kormos wrote:
> Hi there,
>
> Did any of you guys successfuly managed to use this approach also with
> to allow sorting the pages data by columns?
& gt;
> It doesn't look triv ial to me...just let me know if it is realy. If not
> i would realy appreciate a wiki page covering this also.

It is trivial. Sorting with the "paging" approach suggested in the wiki
works just like sorting with a complete in-memory list.

As long as the method that is invoked to return the specified dataset
returns the requested data block in the requested order, it all "just
works".

Regards,

Simon



Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping


Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping

Reply via email to