0 Replies Latest reply on May 7, 2013 3:48 PM by liverpoolfan

    Richface Tree IE9 not  able to select node.

    liverpoolfan

      Hi,

       

      I am using JSF1.2 and Richfaces 3.3.3. We are facing issue in selecting the nodes of the tree in IE9. However, if we change the mode to IE9 compatibility mode, it works fine. I tried the following code in the filter

       

      IE9Filter.java


        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

       

              ((HttpServletResponse) response).setHeader("X-UA-Compatible", "IE=EmulateIE8");

              String accept = ((HttpServletRequest) request).getHeader("Accept");

              if ("text/css".equals(accept)) {

                  chain.doFilter(new IE9HttpServletRequestWrapper((HttpServletRequest) request), response);

              } else {

                  chain.doFilter(request, response);

              }

          }

       

      web.xml


      <filter>

            <display-name>IE9 Filter</display-name>

            <filter-name>ie9filter</filter-name>

            <filter-class>reports.util.IE9Filter</filter-class>

      </filter>

      <filter-mapping>

              <filter-name>ie9filter</filter-name>

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

              <dispatcher>REQUEST</dispatcher>

          </filter-mapping>

       

      We also tried adding the below meta tag in jsp file. It did not work.

       

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

       

      I went through few of the discussions, but i could not find any solution. Please help.