刷新 p:schedule 而不改变当前视图 [英] Refresh a p:schedule without changing the current view

查看:51
本文介绍了刷新 p:schedule 而不改变当前视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有带有 LazyScheduleModel 的 PrimeFaces 8.我可以刷新当前周视图,而没有返回当前日期的时间表吗?该组件中的刷新是有效的,但是刷新后总是转到当前日期,不保留当前视图.

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.

推荐答案

您需要分配一个小部件变量,并使用 PF('scheduleWidgetVarName').update().这将更新时间表并保持当前视图.

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

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

这篇关于刷新 p:schedule 而不改变当前视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆