3 Replies Latest reply on Mar 20, 2007 3:49 AM by Alexander Belov

    Mozilla Firefox error

    Alexander Belov Novice

      I use Facelets, ajax4jsf, JSF1.2 RI and Glassfish server in my work. I have no problem with IE 6, IE 7 and Opera when I work with my application. But there is a problem with Mozilla Firefox. It doesn't show my pages but it shows them as xml-file.
      I see content type "application/xhtml+xml" in Mozilla Firefox. It is wrong. And I see content type "text/html" in IE and Opera. I can't understand where is an error.
      If I remove ajax4jsf library from my application I haven't error. It seems that where is a problem with filters. I write the following in web.xml:

      <context-param>
      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
      </context-param>


      <display-name>Ajax4jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      <init-param>
      <param-name>forceparser</param-name>
      <param-value>false</param-value>
      </init-param>


      <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      Can anybody help me to solve this problem?