4 Replies Latest reply on Jun 4, 2010 8:21 AM by ilya_shaikovsky

    Richfaces is not defined

      Hi,

       

      I want to use RichFaces 3.3.3 for the rich:suggestionbox.

      My xhtml looks like this:

       

                ...

                <rich:suggestionbox id="suggestionBoxId" for="text"
                         suggestionAction="#{autocompletionBean.autocomplete}" var="result">
                                    
                         <h:column>
                                <h:outputText value="#{result}" />
                         </h:column>
                                     
                 </rich:suggestionbox>

                 ...

       

      When I load the page, Firebug reports "Richfaces is not defined".

      I had a similar error with MyFaces and fixed it by adding

          <script type="text/javascript"
              src="/ZensusPrototyp/javax.faces.resource/jsf.js.faces?ln=javax.faces">
          </script>

      to the page. Is there a similar solution for this problem?

      Thanks for any help!

       

      My Environment:

      MyFaces 2.0.0

       

      The RichFaces-part of my web.xml:

      <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>