Try to replace tr:document with :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";
    xmlns:f="http://java.sun.com/jsf/core";
    ... all used namespaces here...
>

<trh:head>
    <title>some title</title>
       <meta http-equiv="X-UA-Compatible" content="IE=7">  <!-- your
meta here !-->
    <tr:importScript/> <!-- other Trinidad stuff should go here -->
</trh:head>

<trh:body>
<tr:form>
<!-- your content here -->
</tr:form>
</trh:body>
</html>

Regards,
Cedric Durmont

2010/9/22 Ricardo Rog <[email protected]>:
> 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 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">
>
>                  <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
>
>
>
>
>
>

Reply via email to