1 Reply Latest reply on Sep 13, 2011 3:42 AM by ravi kumar

    Richfaces 3.3.2+IE 9 problems

    sankar rao Newbie

      Hi All,

       

      Richfaces 3.3.2 application is not working in ie9 but is is working in ie7 and ie8.

      could you please help me how to make it work.

       

      Thanks

        • 1. Re: Richfaces 3.3.2+IE 9 problems
          ravi kumar Newbie

          option1 :Write a one Filer class

           

           

           

           

           

           

           

           

           

          public

           

          class IE9CompatablityFixFilter implements

          Filter {

           

          public void init(FilterConfig filterConfig) throws

          ServletException

          {

          }

           

          public void

          doFilter(ServletRequest request, ServletResponse response,

          FilterChain chain)

          throws

          IOException, ServletException

          {

          System.

          out.println("Filter calling>>>>>>>@#@#@#@#"

          );

          ((HttpServletResponse) response).setHeader(

          "X-UA-Compatible", "IE=6"

          );

          chain.doFilter(request, response);

          }

           

           

          public void

          destroy()

          {

          }

           

          }

           

           

          and in web.xml file

           

          <filter>

          <filter-name>IE9CompatablityFixFilter</filter-name>

          <filter-class>com.clearbrook.aws.filter.IE9CompatablityFixFilter</filter-class>

          </filter>

          <filter-mapping>

          <filter-name>IE9CompatablityFixFilter</filter-name>

          <url-pattern>/*</url-pattern>

          </filter-mapping>

           

          option 2: add meta tag with

          <meta http-equiv="X-UA-Compatible" content="IE=8">