Capture Schedule component month manipulation event

Asked

Viewed 399 times

2

When using the component Schedule of Primefaces it is possible to manipulate the events of the buttons that change the current calendar month, the buttons marked with the circle in the image below?

inserir a descrição da imagem aqui

I want to capture from the event associated to the "navigation buttons" the selected month and perform from this event a query on demand, ie a query that takes into account the month selected by the navigation button.

Is this implementation possible? If so, how should I proceed?

  • You want to catch the month you are displaying after clicking the button?

  • @Rafael, capture of the month is secondary. I want to act in the "change" of the navigation component of the month, to load the events on demand, according to the selected month. I adjusted the question to make the need clearer.

  • Have you seen the event viewChange ? It is fired when the view is changed.

  • @Rafael, I did a quick test and the event was not called when clicking the navigation buttons.

1 answer

1

No need to capture button events, follow the 3rd example of showcase of the first faces(Lazy Schedule), you must load the events in the method loadEvents(Date start, Date end) (line 38)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.