我使用PrimeFaces 3.5与PrimeFaces Extensions 0.7.0和OmniFaces 1.4版
我有一个带有ui的accordionPanel:片段女巫看起来像那样:
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
header="#{msg.administration_fleet_createFleetDialog_title}">
eclipse中没有警告或错误,但在运行我的应用程序时出现浏览器错误:
未捕获的ReferenceError:未定义PrimeFacesExt
有谁知道如何解决这个问题?
解决方法:
似乎问题是:
It seems primefaces ext js files are not loaded unless we use at least
one ext tag.
Since i was not using one on the main page..but it was in a dynamic
ui:include, it was loading only after a hard refresh of main page.
因此,您可以在< h:body>之后的主模板中添加虚拟pe标签.像这样 :
或者像:
它实际上对我有用.
标签:java,jsf,primefaces,primefaces-extensions
来源: https://codeday.me/bug/20190612/1226251.html