PrimeFaces 3.0.M3

不打扰是莪最后的温柔 提交于 2020-01-06 08:47:07

问题


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.

Thks


回答1:


XML namespace url changed to "http://primefaces.org/ui" and the ResourceServlet is not needed anymore, so you usually can just remove it from your web.xml




回答2:


what u need to do 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>


来源:https://stackoverflow.com/questions/7581691/primefaces-3-0-m3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!