Jsf 不执行RichFaces标记
我已经在EclipseLuna中创建了一个动态Web项目,使用JSF2.2和JBossAS7。问题是,在我运行项目后,浏览器中没有从这段代码中呈现任何按钮。例如,a4j:commandLink也是如此 我试图将/faces/*修改为*.xhtml在互联网上找到类似的内容,但没有结果。Jsf 不执行RichFaces标记,jsf,richfaces,jsf-2.2,Jsf,Richfaces,Jsf 2.2,我已经在EclipseLuna中创建了一个动态Web项目,使用JSF2.2和JBossAS7。问题是,在我运行项目后,浏览器中没有从这段代码中呈现任何按钮。例如,a4j:commandLink也是如此 我试图将/faces/*修改为*.xhtml在互联网上找到类似的内容,但没有结果。 点击Ctrl空格是否意味着可以正常工作?rich也不能正常工作。您到底是如何安装RichFaces的?为什么您的页面中没有如中所示的头部区域?我已经从eclipse marketplace安装了jboss工具,我想
点击Ctrl空格是否意味着可以正常工作?rich也不能正常工作。您到底是如何安装RichFaces的?为什么您的页面中没有如中所示的头部区域?我已经从eclipse marketplace安装了jboss工具,我想这是RichFaces附带的。我没有向我的项目添加任何richfaces库。我可以弹出a4j和rich的标签列表,因此我认为它可以识别RichFaces。。我错了吗。。?
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html">
<h:body>
<h:form>
<rich:panel>
<a4j:commandButton value="a4j button"></a4j:commandButton>
</rich:panel>
</h:form>
</h:body>
</html>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
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>TestProject</display-name>
<welcome-file-list>
<welcome-file>faces/index.xhtml</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>/faces/*</url-pattern>
</servlet-mapping>
</web-app>
<faces-config
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
version="2.2">
</faces-config>