myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Rog" <>
Subject [Trinidad] Sort Meta Tags
Date Wed, 22 Sep 2010 16:18:20 GMT


I have an application that has to run in IE7. Now I want to force IE8
browsers to render the page in IE7 mode. For this reason I added the
meta-tag to the page which should have this effect but it doesn’t work.
After some research I found an explanation for this behavior: the meta tag
has to be the first meta tag in the page or it will not work. 


I added the meta tag like this: 


<f:view …>

      <tr:document title="#{title}" onload="#{onload}"

            inlineStyle="margin:0px" mode="strict">

            <f:facet name="metaContainer">


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

<!—some other meta tags à



<tr:form id="topLinksForm">




But it gets rendered like this: 


<html dir="ltr" lang="de-DE">



                <meta name="generator" content="Apache MyFaces Trinidad">

               <link rel="stylesheet" charset="UTF-8" type="text/css"

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

<!—some other meta tags à


Can I in some way reorder the meta tags so the IE meta tag is the first one?



Thanks for your time






  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message