Jsf 富:浏览器中不显示自动完成

Jsf 富:浏览器中不显示自动完成,jsf,richfaces,Jsf,Richfaces,我正在做一个RichFaces教程,我已经完成了代码,但是当我部署项目时,Rich:autocomplete框没有出现在浏览器中,我尝试了不同的浏览器,仍然是相同的 这是我的密码 test.xhtml <body> <rich:panel> <f:facet name="header"> Richfaces sample validation and auto-completion Updated &l

我正在做一个RichFaces教程,我已经完成了代码,但是当我部署项目时,Rich:autocomplete框没有出现在浏览器中,我尝试了不同的浏览器,仍然是相同的

这是我的密码
test.xhtml

 <body>
    <rich:panel>
        <f:facet name="header">
        Richfaces sample validation and auto-completion Updated
        </f:facet>
        <h:form>
            <h:outputText value="Enter your name" />
            <h:inputText id="name" value="#{UserBean.name}">
                <rich:validator />
            </h:inputText>

            <rich:message for="name" />
            <br />

            <h:outputText value="Enter your state" />
            <rich:autocomplete mode="ajax" showButton="true" value="#{UserBean.state}" minChars="1"
                autocompleteMethod="#{UserBean.autocomplete}" />
        </h:form>
    </rich:panel>
</body>
这是“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" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
version="3.0">
  <display-name>rich</display-name>
  <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>
</web-app>

富有的
Facesservlet
javax.faces.webapp.FacesServlet
1.
Facesservlet
*.jsf
当我在浏览器中运行war文件时,它显示如下:

Eclipse中的实际预览如下所示:


HTML是什么样子的?(在浏览器中)通过用新罐子替换旧罐子来解决此问题。:)
    <?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" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
version="3.0">
  <display-name>rich</display-name>
  <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>
</web-app>