问题描述
我一直在使用 PrimeFaces-2.0 和 Tomcat 6.0,现在,我想迁移到 PrimeFaces 3.0 M3.我已将 jar 添加到类路径和/WEB-INF/lib 中,但是当我启动应用程序时,我收到此错误消息 'java.lang.ClassNotFoundException: org.primefaces.resource.ResourceServlet' 首先,当我在 jsf 文件中时,当我输入 'p:(ctrl+space)' 时,我看不到任何组件.我正在使用这个命名空间 url 'xmlns:p="http://primefaces.prime.com.tr/ui"'.我不知道问题出在哪里.
I have been using PrimeFaces-2.0 with Tomcat 6.0 and now, I want to migrate to PrimeFaces 3.0 M3. I've added the jar into the classpath and into the /WEB-INF/lib but when I launch the application I have this error message 'java.lang.ClassNotFoundException: org.primefaces.resource.ResourceServlet' first and when I am in jsf file I can't see any component when I type 'p:(ctrl+space)'. I am using this namespace url 'xmlns:p="http://primefaces.prime.com.tr/ui"'. I don't know where the problem is.
谢谢
推荐答案
你需要做的是
<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:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
Your Coding...
.....
</html>
这篇关于PrimeFaces 3.0.M3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!