0
我想使用primefaces 1.1与JSF 1.2 加入的罐子,因为primefaces类路径不需要任何配置,我的jsp页面如下:无法运行primefaces 1.1 JSF 1.2
<?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 />
测试作为入门 我得到了错误,当
:如果你想PrimeFaces包括他的JavaScript和CSS
The value of the property 'jQuery' is null or undefined, not a Function object
所以我只添加
标签? –@MahmoudSaleh随着搜索我做了,它看起来像是,但我还没有测试。 –
@MahmoudS:它工作吗? –