无法在 PrimeFaces 5 中直接调用 widgetVar [英] Cannot call widgetVar directly in PrimeFaces 5

查看:43
本文介绍了无法在 PrimeFaces 5 中直接调用 widgetVar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 PF4.0 切换到 PF5.0,在我的控制台中我看到很多 Reference 错误,因为我的元素的 widgetVars 不再存在.但是,例如,我可以将 confirmDialogVar 小部件称为 PF('confirmDialogVar').show() 但不能像以前一样使用 confirmDialogVar.show() 调用.

I want to switch from PF4.0 to PF5.0, in my console I see a lot of Reference error, because the widgetVars of my elements are no longer exists. However I can call for example the confirmDialogVar widget as PF('confirmDialogVar').show() but not with confirmDialogVar.show() as before.

是否可以恢复旧"功能?

Is it possible to bring back the 'old' functionality?

提前致谢!

推荐答案

旧方法已在 4.0 中弃用,他们在 5.0 中将其删除.

The old method was already deprecated in 4.0 and they removed it in 5.0.

现在我有很多东西要重构 :D

Now I have a lot to refactor :D

这篇关于无法在 PrimeFaces 5 中直接调用 widgetVar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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