Seems to me you'd want to sort the messages in the order they were received. Like by timestamp or ID.
On Sun, Sep 28, 2008 at 10:32 AM, eyalbenamram <[EMAIL PROTECTED]>wrote: > > Hi again, > I do not think I need to sort the list of items. think of 5 messages sent > by > the user, 3 items per page are displayed. I need it to show items 3,4,5 on > the current page (in this order), and when pressing previous page, show > items 1,2. Any solution? > > > phil59 wrote: > > > > Eyal, > > > > As part of setting up the columns, I call SortableDataProvider.setSort() > > ie., - dataProvider.setSort("publishDate", false); > > > > to define the initial sort column (and ascending/descending order). > > > > Phil > > > > On Sun, Sep 28, 2008 at 9:57 AM, eyalbenamram > > <[EMAIL PROTECTED]>wrote: > > > >> > >> Hi, > >> I have a DataView object holding items, and a PagingNavigator object > >> (customized) > >> that enables paging. When the page is first loaded, the items are > >> displayed > >> from begining to end > >> (if there are 5 items per page, 1-5 are displayed). I need them to be > >> displayed from last to first, > >> without me reersing the list. Is it possible? > >> To elaborate, the list actually contains a conversation so each added > >> item > >> is a new message and thus needed to be displayed at the first page and > >> not > >> the last.. > >> > >> Thanks in advance, Eyal. > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Page-Navigation---order-of-items-tp19712206p19712206.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Phil Grimm > > Mobile: (858) 335-3426 > > Skype: philgrimm336 > > > > > > -- > View this message in context: > http://www.nabble.com/Page-Navigation---order-of-items-tp19712206p19712488.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Phil Grimm Mobile: (858) 335-3426 Skype: philgrimm336