Subject: Apache ISIS - Wicket Full calendar2 event sort order issue


Hi Roshan,
not sure if this applies to your particular use-case, but you could let
your calendar-record class implement Java's 'Comparable' interface. [1]

By doing this, you have control over the 'natural ordering', such that
it's no longer undefined.

regards, Andi

[1] https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html

On 2018/01/29 11:29:30, Roshan Vishwakarma <[EMAIL PROTECTED]> wrote:
<[EMAIL PROTECTED]>>
order.>
> > For your example, the natural order would be the date, start and
then a>
> > recordNum. If you haven't got a recordNum then you'll need one,
otherwise>
> > the order is basically undefined.>
> >>
> > What do you see in the table view for this data?>
> >>
> > With the fullcalendar, I think it should show the data in the same
order as>
> > the table view. Not sure if it it does this already, perhaps you could>
> > check.>
> >>
> > Thx>
> > Dan>
> >>
> >>
> >>
> >>
> > On Thu, 25 Jan 2018 at 12:52 Roshan Vishwakarma <>
> > [EMAIL PROTECTED]> wrote:>
> >>
> > > Hello,>
> > >>
> > > I have integrated isis-wicket-fullcalendar2-cpt in the
web-application.>
> > >>
> > > The question here is:>
> > > How do we show events in sort order in calendar view?>
> > >>
> > > The list passed to calendar is in sorted order but after it is
rendered>
> > in>
> > > calendar its order changes.>
> > >>
> > > For example:>
> > > 1. Record 1>
> > > Date: 25-01-2018>
> > > End: 10:15>
> > > Title: Howard Wolowitz>
> > > Start: 10:00>
> > >>
> > > 2. Record 2>
> > > Date: 25-01-2018>
> > > End: 10:15>
> > > Title: Leonard Hofstadter>
> > > Start: 10:00>
> > >>
> > > 3. Record 3>
> > > Date: 25-01-2018>
> > > End: 10:15>
> > > Title: Raj Koothrappali>
> > > Start: 10:00>
> > >>
> > > When the above records are rendered in the calendar the slot 10:00 ->
> > 10:15>
> > > will display the all this three records without any order. Refer
below>
> > > format:>
> > >>
> > > ------------------------------------------------------------>
> > ---------------------------------------->
> > > 10:00 | |>
> > > |>
> > > |Leonard Hofstadter | Raj Koothrappali | Howard>
> > > Wolowitz>
> > > 10:15 | |>
> > > |>
> > >>
> > > ------------------------------------------------------------>
> > ----------------------------------------->
> > >>
> > > Please does anyone know how we can apply on calendar events.>
> > >>
> > > Thanks>
> > >>
> > >>
> > > Regards,>
> > > Roshan>
> > >>
> >>
>