If you need to force Internet Explorer 8 into Compatibility mode a tag exists to do this in the page meta-data
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
However if any <script> or <link> tags are placed before this tag in the page <head>, IE8 will ignore the tag. Currently Richfaces 3.3.1 GA inserts such tags immediately after the <head> tag. There isn't currently a way to control the order Richfaces inserts these tags this but a JIRA exists to change the behavior. https://jira.jboss.org/jira/browse/RF-7344
A workaround for this is to insert a value into the http response header. This can be accomplished in seam with the pages.xml file
This example would apply this on every page.
<page view-id="*">
<header name="X-UA-Compatible">IE=EmulateIE7</header>
<navigation>
<rule if-outcome="home">
<redirect view-id="/home.xhtml"/>
</rule>
</navigation>
</page>
Or on an individual page.
<page view-id="/admin/user_edit.xhtml">
<header name="X-UA-Compatible">IE=EmulateIE7</header>
<description>Edit User</description>
</page>
Comments