Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';使用JSF1.2运行PrimeFaces1.1_Jsf_Primefaces_Jsf 1.2 - Fatal编程技术网

Can';使用JSF1.2运行PrimeFaces1.1

Can';使用JSF1.2运行PrimeFaces1.1,jsf,primefaces,jsf-1.2,Jsf,Primefaces,Jsf 1.2,我试图将primefaces1.1与jsf1.2一起使用 通过将JAR添加到类路径,因为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"

我试图将primefaces1.1jsf1.2一起使用 通过将JAR添加到类路径,因为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包含他的JavaScript和CSS文件,你需要将
添加到
头部

,所以我只添加标签?@MahmoudSaleh通过搜索我已经完成了,看起来是的,但我还没有测试过。
The value of the property 'jQuery' is null or undefined, not a Function object