Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh a p:schedule without changing the current view

Tags:

primefaces

I have PrimeFaces 8 with LazyScheduleModel. Can I refresh the current week view, without the schedule to go back to the current date? Refresh in this component is working, but after refresh, it always goes to the current date, and does not keep the current view.

like image 545
Attila Rivnyak Avatar asked Apr 08 '26 04:04

Attila Rivnyak


1 Answers

You need to assign a widget var, and use PF('scheduleWidgetVarName').update(). This will update the schedule and keep the current view.

See: https://primefaces.github.io/primefaces/jsdocs/classes/src_primefaces.primefaces.widget.schedule-1.html#update

like image 80
Jasper de Vries Avatar answered Apr 10 '26 00:04

Jasper de Vries



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!