【发布时间】:2013-06-01 09:03:55
【问题描述】:
我正在尝试将 primefaces 1.1 与 JSF 1.2 一起使用 通过将 jars 添加到类路径,因为 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
【问题讨论】:
标签: jsf primefaces jsf-1.2