admin管理员组文章数量:1208153
I tried the NotificationBar example of PrimeFaces, however it didn't work. I get the following JS error:
ReferenceError: PF is not defined
I think I need to include a library before using PF()
function, but I don't know which library and where can I find it.
I tried the NotificationBar example of PrimeFaces, however it didn't work. I get the following JS error:
ReferenceError: PF is not defined
I think I need to include a library before using PF()
function, but I don't know which library and where can I find it.
- 2 can you try widgetVar.show() – Mathew Rock Commented Aug 6, 2013 at 10:42
- It doesn't work too ! – ThunderPhoenix Commented Aug 6, 2013 at 11:11
1 Answer
Reset to default 22The JS function PF()
is only available since 4.0. You're apparently using PF 3.x. Look at the footer of the showcase site, it's currently saying that it's running PF 4.0.
Just use widgetVar.show()
, where widgetVar
is the widget variable name as you specified in widgetVar
, which is bar
in their showcase example.
<p:commandButton value="Show" onclick="bar.show()" type="button" />
<p:commandButton value="Hide" onclick="bar.hide()" type="button" />
本文标签: javascriptReferenceError PF is not definedStack Overflow
版权声明:本文标题:javascript - ReferenceError: PF is not defined - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738712176a2108260.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论