我正在尝试通过将 jars 添加到类路径来将primefaces 1.1与JSF 1.2一起使用 ,因为 primefaces 不需要任何配置,并且我的 jsp 页面如下:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:ui="http://www.sun.com/web/ui"
xmlns:p="http://primefaces.prime.com.tr/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8"/>
<f:view>
<ui:page id="page1">
<ui:html id="html1">
<body id="body1">
<ui:form binding="#{MyBean.gform}">
<p:commandButton id="basic" value="Basic" onclick="dlg1.show();" type="button" />
<p:dialog id="basicDialog" header="Basic Dialog" widgetVar="dlg1">
<h:outputText value="Resistance to PrimeFaces is futile!" />
</p:dialog>
但我收到脚本错误,'PrimeFaces' is undefined
请告知问题所在。
编辑:
当尝试仅使用该组件<p:spinner />
进行测试时,如在入门中一样,我收到了错误:
The value of the property 'jQuery' is null or undefined, not a Function object