Java 在JSF2.0应用程序中使用RichFaces4
我试图将RichFaces添加到JSF 2.0应用程序中,但我得到了以下结果:Java 在JSF2.0应用程序中使用RichFaces4,java,jsf,richfaces,Java,Jsf,Richfaces,我试图将RichFaces添加到JSF 2.0应用程序中,但我得到了以下结果: 请求的资源()不可用。 来自控制台: java.lang.ClassNotFoundException: org.ajax4jsf.Filter My web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http:/
请求的资源()不可用。
来自控制台:
java.lang.ClassNotFoundException: org.ajax4jsf.Filter
My web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>RichFaces4Test</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<!-- Plugging the "Blue Sky" skin into the project -->
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<!-- Making the RichFaces skin spread to standard HTML controls -->
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Defining and mapping the RichFaces filter -->
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
</web-app>
RichFaces4测试
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
Facesservlet
javax.faces.webapp.FacesServlet
1.
Facesservlet
*.jsf
org.richfaces.SKIN
蓝调的
org.richfaces.CONTROL\u蒙皮
使可能
RichFaces过滤器
富人
org.ajax4jsf.Filter
富人
Facesservlet
要求
向前地
包括
我的图书馆馆长:
由于RichFaces4.0,您不需要
org.ajax4jsf.Filter
。这也不再包含在RF 4.0中。请阅读,而不是RichFaces 3.x或更高版本的。对于RF 4.0,您不需要在web.xml
中放入任何内容。只需删除整个
和
谢谢您的回答。现在我有另一个问题。组件不会渲染。例如,当我尝试这个演示时:我得到了这样的结果:“这是一个带有3个选项卡的默认选项卡面板示例。j_id1475365623_57f04a9f j_id1475365623_57f04a9f j_id1475365623_57f04a75 j_id1475365623_57f04a75 j_id1475365623_id1475365623_57f04a75 j_id1475365623_id1475365623_57F04; 63;↓ »这里是表1“这是一个不同的问题。您最初的问题是关于过滤器上的ClassNotFoundException
。如果您有新问题,请按询问问题
。评论不是发布新问题/答案的正确位置。