我正面临着ADF web应用程序的兼容性问题。尝试添加元标记- '<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />‘,甚至尝试注入java脚本来抑制兼容性问题,但没有任何反应。下面是java脚本-
`
<af:resource type="javascript">
var meta = document.createElement('meta');
meta.setAttribute('http-equiv', 'X-UA-Compatible');
meta.setAttribute('content', 'IE=Edge');
document.getElementsByTagName('head')[0].appendChild(meta);
</af:resource>`
在.jspx页面中添加meta标签,如下所示-
1)‘
<af:document>
<f:facet name="metaContainer">
<f:verbatim>
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;IE=7;IE=EDGE"/>
</f:verbatim>
</f:facet>
-----
<f:facet>
----
----
</f:facet>
</af:document>‘
2)‘
<af:document>
<f:facet name="metaContainer">
<af:group id="metaContainer">
<trh:meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"/>
</af:group>
</f:facet>
</af:document>‘
None of the above approaches are working with the application, Kindly help me out with your suggestions.
Thanks in advance发布于 2015-02-24 23:42:49
很想知道你到底面临着什么样的兼容性问题,IE版本,Jdeveloper版本等等。
但是,作为一个大胆的猜测,我将推荐这个博客:http://jonasdegraaff.blogspot.co.uk/2013/11/how-to-run-your-adf-111x-application.html
发布于 2015-03-13 13:37:12
上述问题可以通过对Jdeveloper使用较少的补丁和在xml文件中添加以下上下文参数来解决。
<context-param>
<paramname>oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS</paramname>
<param-value>IECompatibilityModes</param-value>
</context-param>
<context-param> <paramname>org.apache.myfaces.trinidad.Agent#OVERRIDE_IE_COMPATIBILITY_MODE<param-name>
<param-value>true</param-value>
</context-param> https://stackoverflow.com/questions/28695914
复制相似问题