You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ricardo Rog <ri...@softproject.de> on 2010/09/22 18:18:20 UTC
[Trinidad] Sort Meta Tags
Hello,
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 doesnt 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">
<h:panelGroup>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<!some other meta tags à
</h:panelGroup>
</f:facet>
<tr:form id="topLinksForm">
<!pageà
But it gets rendered like this:
<html dir="ltr" lang="de-DE">
<head>
<title>
</title>
<meta name="generator" content="Apache MyFaces Trinidad">
<link rel="stylesheet" charset="UTF-8" type="text/css"
href="/dsuche/adf/styles/cache/sp-desktop-wfgiw0-ltr-ie.css;jsessionid=C6FD3
EA54675A722492C8E6CB59917BF">
<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
Ricardo