7 Replies Latest reply: May 19, 2012 8:51 AM by Adrien Adrien RSS

    adding meta tag X-UA-Compatible for IE8 in richfaces

    marco malaquias Newbie

      Hello people,

      In a project that I'm working, the modal of richfaces dont work in IE8. To resolv the problem, I've liked to insert the code below in the tag:
      <meta http-equiv="X-UA-Compatible" content="IE=7" />

      This is my code:

      <head>
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       <meta http-equiv="X-UA-Compatible" content="IE=7" />
      
       <link rel="shortcut icon" href="#{facesContext.externalContext.request.contextPath}/ongs/img/favicon.ico" type="image/x-icon" />
       <title><ui:insert name="titulo">Organizações</ui:insert></title>
      
       <meta name="language" content="portuguese" />
       <meta name="author" content="http://www.knowtec.com" />
       <meta name="keywords" content="" />
       <meta name="description" content="" />
       <meta name="copyright" content="" />
       <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.request.contextPath}/ongs/css/estilo.css" media="screen" />
       <ui:insert name="css"></ui:insert>
       </head>



      This code create the code below:
      <head>
       <link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' /><link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' /><link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/css/suggestionbox.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' /><link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTcss/table.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' /><link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTcss/datascroller.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' /><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/ajax4jsf/javascript/scripts/form.js'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.PrototypeScript'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/scripts/available.js'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.SmartPositionScript'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/scripts/browser_info.js'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTscripts/scriptaculo.js'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTscripts/suggestionbox.js'></script><script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/renderkit/html/scripts/data-table.js'></script><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
      
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      
      
       <link rel="shortcut icon" href="/publica/img/favicon.ico" type="image/x-icon" />
       <title>Voluntários Online - Página Inicial</title>
      
       <meta name="language" content="portuguese" />
       <meta name="author" content="http://www.knowtec.com" />
       <meta name="copyright" content="Instituto Voluntários em Ação" />
       <meta name="keywords" content="voluntários, online, oportunidades, voluntariado, voluntários, ong, ongs, organizações, organização, presencial " />
       <meta name="description" content="portal www.voluntariosonline.org.br onde é possÃÂvel participar de trabalhos voluntários nas organizações ou em casa, através da internet." />
      
      
       <link type="text/css" rel="stylesheet" href="/publica/css/estilo.css" media="screen" />
      
       <link type="text/css" rel="stylesheet" href="/resources/publica/css/componentes.css" media="screen" />
      </head>
      


      But is necessary the meta tag come next the , but the js and css cames first.


      Thanks for all

        • 1. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
          Nick Belaevski Master

          Hello,

          We've fixed modal panel issue, please check the latest CR of 3.3.1.

          • 2. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
            Kerdudou Ronan Apprentice

            the "X-UA-Compatible" as a meta tag is really not the solution... you can add it only to confirm the http header (sending the same value, of course).

            you may add a filter to your application if you can't config it in apache or else...

            web.xml :

            <!-- Filter to set character encoding on each request
            Filtre pour ajouter des entetes HTTP comme par exemple "Set Character Encoding" et le "X-UA-Compatible" de microsoft
            -->
            <filter>
             <filter-name>SetHttpHeadersFilter</filter-name>
             <filter-class>com.vc.mm.servlets.SetHttpHeadersFilter</filter-class>
             <init-param>
             <param-name>encoding</param-name>
             <param-value>UTF-8</param-value>
             </init-param>
             <init-param>
             <param-name>X-UA-Compatible</param-name>
             <param-value>IE=edge</param-value><!-- IE=8 -->
             </init-param>
            </filter>
            <!-- application du filtre SetHttpHeadersFilter
             to *all* requests processed by this web application -->
            <filter-mapping>
             <filter-name>SetHttpHeadersFilter</filter-name>
             <url-pattern>/*</url-pattern>
            </filter-mapping>


            and the filter :
            /*
            * Copyright 2004 The Apache Software Foundation
            *
            * Licensed under the Apache License, Version 2.0 (the "License");
            * you may not use this file except in compliance with the License.
            * You may obtain a copy of the License at
            *
            * http://www.apache.org/licenses/LICENSE-2.0
            *
            * Unless required by applicable law or agreed to in writing, software
            * distributed under the License is distributed on an "AS IS" BASIS,
            * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            * See the License for the specific language governing permissions and
            * limitations under the License.
            */
            /*
             * Original name : org.apache.webapp.admin.filters.SetCharacterEncodingFilter
             * Modified by VirageGroup to match our needs.
             */
            package com.vc.mm.servlets;
            
            import java.io.IOException;
            
            import javax.servlet.Filter;
            import javax.servlet.FilterChain;
            import javax.servlet.FilterConfig;
            import javax.servlet.ServletException;
            import javax.servlet.ServletRequest;
            import javax.servlet.ServletResponse;
            import javax.servlet.http.HttpServletResponse;
            
            /**
             * <p>Ce filtre permet de specifier des entetes HTTP dans la reponse.</p>
             *
             * <p>Il ajoute notemment le X-UA-Compatible pour Internet Explorer 8</p>
             *
             * <p>(http://www.jdocs.com/tomcat/5.5.17/org/apache/webapp/admin/filters/SetCharacterEncodingFilter.html)<br/>
             * Filter that sets the character encoding to be used in parsing the
             * incoming request, either unconditionally or only if the client did not
             * specify a character encoding. Configuration of this filter is based on
             * the following initialization parameters:
             * <ul>
             * <li><strong>encoding</strong> - The character encoding to be configured
             * for this request, either conditionally or unconditionally based on
             * the <code>ignore</code> initialization parameter. This parameter
             * is required, so there is no default.</li>
             * <li><strong>ignore</strong> - If set to "true", any character encoding
             * specified by the client is ignored, and the value returned by the
             * <code>selectEncoding()</code> method is set. If set to "false,
             * <code>selectEncoding()</code> is called <strong>only</strong> if the
             * client has not already specified an encoding. By default, this
             * parameter is set to "true".</li>
             * </ul>
             * </p>
             */
            public class SetHttpHeadersFilter implements Filter {
            
             // ----------------------------------------------------- Instance Variables
            
             /**
             * The default character encoding to set for requests that pass through
             * this filter.
             */
             protected String encoding = null;
            
             /**
             * The filter configuration object we are associated with. If this value
             * is null, this filter instance is not currently configured.
             */
             protected FilterConfig filterConfig = null;
            
             /**
             * Should a character encoding specified by the client be ignored?
             */
             protected boolean ignore = true;
            
             // --------------------------------------------------------- Public Methods
            
             /**
             * Take this filter out of service.
             */
             public void destroy() {
            
             this.encoding = null;
             this.filterConfig = null;
            
             }
            
             /**
             * Select and set (if specified) the character encoding to be used to
             * interpret request parameters for this request.
             *
             * @param request The servlet request we are processing
             * @param response The servlet response we are creating
             * @param chain The filter chain we are processing
             *
             * @exception IOException if an input/output error occurs
             * @exception ServletException if a servlet error occurs
             */
             public void doFilter(ServletRequest request, ServletResponse response,
             FilterChain chain)
             throws IOException, ServletException {
            
             // Conditionally select and set the character encoding to be used
             if (ignore || (request.getCharacterEncoding() == null)) {
             String selectEncoding = selectEncoding(request);
             if (selectEncoding != null)
             request.setCharacterEncoding(selectEncoding);
             }
            
             //ajout du X-UA-Compatible pour IE8+ //TODO rendre ca configurable...
             //ou "IE=8;FF=3;Opera=10;Chrome=2;Safari=4;OtherUA=4" ou "IE=edge;OtherUA=edge"
             //aussi present dans /inc/head.inc.jsp
             ((HttpServletResponse)response).setHeader("X-UA-Compatible", "IE=edge");
            
            
             // Pass control on to the next filter
             chain.doFilter(request, response);
             }
            
             /**
             * Place this filter into service.
             *
             * @param filterConfig The filter configuration object
             */
             public void init(FilterConfig filterConfig) throws ServletException {
             this.filterConfig = filterConfig;
            
             this.encoding = filterConfig.getInitParameter("encoding");
            
             String value = filterConfig.getInitParameter("ignore");
             this.ignore = (value == null || value.equalsIgnoreCase("true") || value.equalsIgnoreCase("yes"));
             }
            
             // ------------------------------------------------------ Protected Methods
            
             /**
             * Select an appropriate character encoding to be used, based on the
             * characteristics of the current request and/or filter initialization
             * parameters. If no character encoding should be set, return
             * <code>null</code>.
             * <p>
             * The default implementation unconditionally returns the value configured
             * by the <strong>encoding</strong> initialization parameter for this
             * filter.
             *
             * @param request The servlet request we are processing
             */
             protected String selectEncoding(ServletRequest request) {
             return (this.encoding);
             }
            }


            Note that in this version there is still a "TODO make this configurable" because the code doesn't read the init param...
            As i see it... i'll correct this...

            • 3. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
              Kerdudou Ronan Apprentice

              correct code (using init-param) :

              /*
              * Copyright 2004 The Apache Software Foundation
              *
              * Licensed under the Apache License, Version 2.0 (the "License");
              * you may not use this file except in compliance with the License.
              * You may obtain a copy of the License at
              *
              * http://www.apache.org/licenses/LICENSE-2.0
              *
              * Unless required by applicable law or agreed to in writing, software
              * distributed under the License is distributed on an "AS IS" BASIS,
              * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              * See the License for the specific language governing permissions and
              * limitations under the License.
              */
              /*
               * Original name : org.apache.webapp.admin.filters.SetCharacterEncodingFilter
               * Modified by VirageGroup to match our needs.
               */
              package com.vc.mm.servlets;
              
              import java.io.IOException;
              
              import javax.servlet.Filter;
              import javax.servlet.FilterChain;
              import javax.servlet.FilterConfig;
              import javax.servlet.ServletException;
              import javax.servlet.ServletRequest;
              import javax.servlet.ServletResponse;
              import javax.servlet.http.HttpServletResponse;
              
              /**
               * <p>Ce filtre permet de specifier des entêtes HTTP dans la reponse.</p>
               *
               * <p>Il ajoute notemment le X-UA-Compatible pour Internet Explorer 8</p>
               *
               * <p>(http://www.jdocs.com/tomcat/5.5.17/org/apache/webapp/admin/filters/SetCharacterEncodingFilter.html)<br/>
               * Filter that sets the character encoding to be used in parsing the
               * incoming request, either unconditionally or only if the client did not
               * specify a character encoding. Configuration of this filter is based on
               * the following initialization parameters:
               * <ul>
               * <li><strong>encoding</strong> - The character encoding to be configured
               * for this request, either conditionally or unconditionally based on
               * the <code>ignore</code> initialization parameter. This parameter
               * is required, so there is no default.</li>
               * <li><strong>ignore</strong> - If set to "true", any character encoding
               * specified by the client is ignored, and the value returned by the
               * <code>selectEncoding()</code> method is set. If set to "false,
               * <code>selectEncoding()</code> is called <strong>only</strong> if the
               * client has not already specified an encoding. By default, this
               * parameter is set to "true".</li>
               * </ul>
               * </p>
               */
              public class SetHttpHeadersFilter implements Filter {
              
               // ----------------------------------------------------- Instance Variables
              
               /**
               * The default character encoding to set for requests that pass through this filter.
               */
               protected String encoding = null;
              
               /**
               * The filter configuration object we are associated with. If this value
               * is null, this filter instance is not currently configured.
               */
               protected FilterConfig filterConfig = null;
              
               /**
               * Should a character encoding specified by the client be ignored?
               */
               protected boolean ignore = true;
              
               /**
               * The Microsoft X-UA-Compatible hack
               */
               protected String xuacompatible = null;
              
               // --------------------------------------------------------- Public Methods
              
               /**
               * Take this filter out of service.
               */
               public void destroy() {
               this.encoding = null;
               this.filterConfig = null;
               this.xuacompatible = null;
               }
              
               /**
               * Select and set (if specified) the character encoding to be used to
               * interpret request parameters for this request.
               *
               * @param request The servlet request we are processing
               * @param response The servlet response we are creating
               * @param chain The filter chain we are processing
               *
               * @exception IOException if an input/output error occurs
               * @exception ServletException if a servlet error occurs
               */
               public void doFilter(ServletRequest request, ServletResponse response,
               FilterChain chain)
               throws IOException, ServletException {
              
               // Conditionally select and set the character encoding to be used
               if (ignore || (request.getCharacterEncoding() == null)) {
               String selectEncoding = selectEncoding(request);
               if (selectEncoding != null)
               request.setCharacterEncoding(selectEncoding);
               }
              
               //ajout du X-UA-Compatible pour IE8+
               //aussi present dans /inc/head.inc.jsp
               ((HttpServletResponse)response).setHeader("X-UA-Compatible", this.xuacompatible);
              
              
               // Pass control on to the next filter
               chain.doFilter(request, response);
               }
              
               /**
               * Place this filter into service.
               *
               * @param filterConfig The filter configuration object
               */
               public void init(FilterConfig filterConfig) throws ServletException {
               this.filterConfig = filterConfig;
              
               this.encoding = filterConfig.getInitParameter("encoding");
              
               String value = filterConfig.getInitParameter("ignore");
               this.ignore = (value == null || value.equalsIgnoreCase("true") || value.equalsIgnoreCase("yes"));
              
               this.xuacompatible = filterConfig.getInitParameter("X-UA-Compatible");
               }
              
               // ------------------------------------------------------ Protected Methods
              
               /**
               * Select an appropriate character encoding to be used, based on the
               * characteristics of the current request and/or filter initialization
               * parameters. If no character encoding should be set, return
               * <code>null</code>.
               * <p>
               * The default implementation unconditionally returns the value configured
               * by the <strong>encoding</strong> initialization parameter for this
               * filter.
               *
               * @param request The servlet request we are processing
               */
               protected String selectEncoding(ServletRequest request) {
               return (this.encoding);
               }
              }
              


              may this help someone...

              • 4. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
                marco malaquias Newbie

                Thanks for your answer.

                I did in another way. In my web.xml, I change the follow parameters:

                <!-- OPTIMIZAÇÕES DO RICHFACES -->
                 <!-- http://www.javaplex.com/blog/optimizing-jsf-richfaces-applications/ -->
                 <context-param>
                 <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.richfaces.LoadScriptStrategy</param-name>
                 <param-value>NONE</param-value>
                 <!-- por causa de um problema na modal no ie8, a geração dos scripts foram desabilitadas e colocado diretamente no head, após as meta tags -->
                 </context-param>
                
                 <context-param>
                 <param-name>org.richfaces.LoadStyleStrategy</param-name>
                 <param-value>NONE</param-value>
                 <!-- por causa de um problema na modal no ie8, a geração dos scripts foram desabilitadas e colocado diretamente no head, após as meta tags -->
                 </context-param>
                 <!-- FIM - OPTIMIZAÇÕES DO RICHFACES -->


                And I put the static links and scripts tags in the head, like this:
                <head>
                 <meta http-equiv="X-UA-Compatible" content="IE=7" />
                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                 <meta name="language" content="portuguese" />
                 <meta name="author" content="http://www.knowtec.com" />
                 <meta name="copyright" content="Instituto Voluntários em Ação" />
                 <ui:insert name="metatags"></ui:insert>
                
                 <link rel="shortcut icon" href="#{facesContext.externalContext.request.contextPath}/publica/img/favicon.ico" type="image/x-icon" />
                 <title>Voluntários Online<ui:insert name="titulo"></ui:insert></title>
                
                 <!-- devido a um problema na modal no IE8 - os css's e js's serão carregados manualmente -->
                 <link rel='stylesheet' class='component' type='text/css' href='/publica/pesquisa/a4j_3_2_1-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAFrvajdHLp8hjQAEgwDtA__' />
                 <script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOT/org/ajax4jsf/framework.pack.js'></script>
                 <script type='text/javascript' src='/publica/pesquisa/a4j_3_2_1-SNAPSHOT/org/richfaces/ui.pack.js'></script>
                
                 <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.request.contextPath}/publica/css/estilo.css" media="screen" />
                 <ui:insert name="css"></ui:insert>
                </head>
                


                Doing this, the modal work correctly.

                For more details: http://marcomalaquias.wordpress.com/2009/05/12/problemas-com-a-modal-para-o-ie8/ (pt_BR)


                • 5. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
                  Niraj Adhikary Newbie

                  Hi Guys,

                          I have tried both the ways as mentioned above, but my Richfaces page is loading with something like this :

                   

                  <head>
                  <link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAcss/spacer.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAcss/tabPanel.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/scrollable-data-table.xcss/DATB/eAFb3qQyEwAFBwHn' /><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.PrototypeScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.AjaxScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.ImageCacheScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/browser_info.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/ajax4jsf/javascript/scripts/form.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAscripts/tabPanel.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/utils.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanel.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/extend/extend.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/scrollable-data-table.js'></script><link href="../stylesheet/chain.css" rel="stylesheet" type="text/css">

                   

                   

                   

                  I have tried with filter it is not able to load the header "X-UA-Compatible" , and in case of page declaration it is loading after the above section.

                   

                  In my page i have declared lot of namespaces as follows:

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                  xmlns

                   

                  =

                  "http://www.w3.org/1999/xhtml"

                   

                  xmlns:ui=

                  "http://java.sun.com/jsf/facelets"

                   

                  xmlns:h=

                  "http://java.sun.com/jsf/html"

                   

                  xmlns:f=

                  "http://java.sun.com/jsf/core"

                   

                  xmlns:a4j=

                  "http://richfaces.org/a4j"

                   

                  xmlns:rich=

                  "http://richfaces.org/rich"

                   

                  xmlns:s=

                  "http://jboss.com/products/seam/taglib"

                   

                  xmlns:tr=

                  "http://myfaces.apache.org/trinidad"

                   

                  xmlns:c=

                  "http://java.sun.com/jstl/core"

                   

                  xmlns:fn=

                  "http://java.sun.com/jsp/jstl/functions"

                   

                  xmlns:custom="http://www.travelclick.net/chain"

                  >

                   

                   

                  May I know whether this is loading all the JS and CSS file before the meta tag.

                   

                  Please help me to overcome the situation. I am in big trouble.

                   

                  Please Please help!

                   

                   

                  • 6. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
                    Niraj Adhikary Newbie

                    Hi Guys,

                            I have tried both the ways as mentioned above, but my Richfaces page is loading with something like this :

                     

                    <head>
                    <link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAcss/spacer.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAcss/tabPanel.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAFb3qQyEwAFBwHn' /><link rel='stylesheet'  type='text/css' href='/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/scrollable-data-table.xcss/DATB/eAFb3qQyEwAFBwHn' /><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.PrototypeScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.AjaxScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg.ajax4jsf.javascript.ImageCacheScript'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/browser_info.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/ajax4jsf/javascript/scripts/form.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAscripts/tabPanel.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/utils.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanel.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/extend/extend.js'></script><script type='text/javascript' src='/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/scrollable-data-table.js'></script><link href="../stylesheet/chain.css" rel="stylesheet" type="text/css">

                     

                     

                     

                    I have tried with filter it is not able to load the header "X-UA-Compatible" , and in case of page declaration it is loading after the above section.

                     

                    In my page i have declared lot of namespaces as follows:

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                     

                    xmlns

                     

                    =

                    "http://www.w3.org/1999/xhtml"

                     

                    xmlns:ui=

                    "http://java.sun.com/jsf/facelets"

                     

                    xmlns:h=

                    "http://java.sun.com/jsf/html"

                     

                    xmlns:f=

                    "http://java.sun.com/jsf/core"

                     

                    xmlns:a4j=

                    "http://richfaces.org/a4j"

                     

                    xmlns:rich=

                    "http://richfaces.org/rich"

                     

                    xmlns:s=

                    "http://jboss.com/products/seam/taglib"

                     

                    xmlns:tr=

                    "http://myfaces.apache.org/trinidad"

                     

                    xmlns:c=

                    "http://java.sun.com/jstl/core"

                     

                    xmlns:fn=

                    "http://java.sun.com/jsp/jstl/functions"

                     

                    xmlns:custom="http://www.travelclick.net/chain"

                    >

                     

                     

                    May I know whether this is loading all the JS and CSS file before the meta tag.

                     

                    Please help me to overcome the situation. I am in big trouble.

                     

                    Please Please help!

                     

                     

                    • 7. Re: adding meta tag X-UA-Compatible for IE8 in richfaces
                      Adrien Adrien Apprentice

                      Hi

                      Have you found how to place X-UA-Compatible just after <head>? Or have you use another workaround?

                      Thanks