RichFaces 3.x on IE9
RichFaces 3.x on IE9
<filter> <filter-name>IE9CompatablityFixFilter</filter-name> <filter-class>com.tudip.managedbeans.IE9CompatablityFixFilter</filter-class> </filter> <filter-mapping> <filter-name>IE9CompatablityFixFilter</filter-name> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping>
Note: This filter is configure against the ‘Faces Servlet’ servlet for every Ajax request.
public class IE9CompatablityFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { ((HttpServletResponse) response).setHeader("X-UA-Compatible", "IE=EmulateIE8"); // or IE=EmulateIE chain.doFilter(request, response); } public void destroy() { } }