Primefacesは構成を必要とせず、私のjspページは次のとおりであるため、クラスパスにjarを追加して、JSF 1.2でprimefaces 1.1を使用しようとしています:
<?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