![](/img/trans.png)
[英]javax.faces.FacesException: Expression Error: Named Object: player not found
[英]getting Expression Error: Named Object: javax.faces.ComponentResourceContainer not found. when using primefaces?
我正在使用jsf2.0和spring 3.0。並且我在web.xml中集成了spring上下文,當試圖在我的jSF頁面上應用primaces時,它就如上述問題所示。 我在WEB-INF / lib中包括了primefaces3.4 jar,並且也將其放在類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
我正在使用myfaces jsf2.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。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.