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
Jsf 获取表达式错误:未找到命名对象:javax.faces.ComponentResourceContainer。当使用素面时?_Jsf_Primefaces - Fatal编程技术网

Jsf 获取表达式错误:未找到命名对象:javax.faces.ComponentResourceContainer。当使用素面时?

Jsf 获取表达式错误:未找到命名对象:javax.faces.ComponentResourceContainer。当使用素面时?,jsf,primefaces,Jsf,Primefaces,我使用的是jsf2.0和Spring3.0,并且我在web.xml中集成了spring上下文。当我尝试将primeaces应用到我的jSF页面时,它显示为问题中提到的。我在WEB-INF/lib中包含了primefaces3.4JAR,还将其放入了类path中,并在jsf页面中添加了相关的名称空间。我得到的错误如上所述。我已经把WEB-INF/lib放在这里了 com.springsource.org.apache.commons.logging-1.1.1.jar com.springsour

我使用的是jsf2.0和Spring3.0,并且我在web.xml中集成了spring上下文。当我尝试将primeaces应用到我的jSF页面时,它显示为问题中提到的。我在WEB-INF/lib中包含了primefaces3.4JAR,还将其放入了类path中,并在jsf页面中添加了相关的名称空间。我得到的错误如上所述。我已经把WEB-INF/lib放在这里了

com.springsource.org.apache.commons.logging-1.1.1.jar
com.springsource.org.apache.log4j-1.2.15.jar 
commons-lang3-3.1.jar
javaee.jar
jsf-api-2.0.jar
jsf-impl-2.0.0-b13.jar
ojdbc7.jar
org.springframework.asm-3.0.1.RELEASE-A.jar
org.springframework.beans-3.0.1.RELEASE-A.jar
org.springframework.context-3.0.1.RELEASE-A.jar
org.springframework.core-3.0.1.RELEASE-A.jar
org.springframework.expression-3.0.1.RELEASE-A.jar
org.springframework.transaction-3.0.0.RELEASE.jar
primefaces-3.4.jar
spring-2.5.jar
spring-jdbc.jar
spring-webmvc-3.0.0.RELEASE.jar
我正在使用MyFacesJSF2.o版本和我的jsf页面login.xhtml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html 
 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:p="http://primefaces.org/ui">
<head><link rel="stylesheet" 
 type="text/css"   href="/RealtimeApplication/CSS/styles.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title> Please Login</title>
</head>
<f:view>

<body>
<h:form>

<b> choose date</b><p:calendar value="#{login1.date}" mode="inline" id="inlineCal"/>            

   <br/>

请登录
选择日期


请帮助我完成我的任务。

primefaces 3.4需要jsf 2.1。您可以看到依赖关系。将您的版本更新到2.1,然后重试。

PrimeFaces可用于JSF 2.0、2.1以及PrimeFaces4.0也可用于2.2


你能把stacktrace贴出来吗?请同时使用h:head而不是head。

您能告诉我jsf2.0支持哪种类型的素数面吗?素数面3.1.1支持jsf2.0。请看,但我强烈建议,如果可能的话,更新您的jsf版本!