11 Replies Latest reply on May 22, 2007 7:17 AM by Ilya Shaikovsky

    ajax4jsf javascript is not being included! Maybe configurati

    Dan Diodati Newbie

      HI Im trying to get ajax4jsf working, I followed the instructions and
      things seemed to be setup correctly, but the ajax4jsf javascript is not being included on the page. (javascript error indicating A4J object not found)

      I added the two included jars in my war, and added web.xml entries.
      I'm current using myfaces,seam, and facelets.

      I even set a break point on the ajax4jsf filter and it does seem to execute.
      What would cause this?


      Here is the web.xml:

      <filter>
       <filter-name>Seam Redirect Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
       </filter>
      
       <filter>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
      
       <filter>
       <filter-name>Seam Exception Filter</filter-name>
       <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>Seam Redirect Filter</filter-name>
       <servlet-name>faces-servlet</servlet-name>
       </filter-mapping>
      
      
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>faces-servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
      
       <filter-mapping>
       <filter-name>Seam Exception Filter</filter-name>
       <servlet-name>faces-servlet</servlet-name>
       </filter-mapping>
      
       <!-- Faces Servlet -->
       <servlet>
       <servlet-name>faces-servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup> 3 </load-on-startup>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>faces-servlet</servlet-name>
       <url-pattern>/faces/*</url-pattern>
       </servlet-mapping>