2015-02-24 73 views
0

我面臨着與我的ADF Web應用程序的兼容性問題。試圖添加元標記 - '<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />',甚至嘗試注入Java腳本來壓制兼容性問題,但沒有任何反映。下面是Java腳本 -面對瀏覽器與IE-9的兼容性問題

`

<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> 

`

添加meta標籤中.jspx頁面如下─

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 

回答

1

這將是很好的知道什麼樣的兼容性問題,你都面臨着準確,IE的版本時,JDeveloper版本等

但是,作爲一個瘋狂的猜測,我會建議這個博客: http://jonasdegraaff.blogspot.co.uk/2013/11/how-to-run-your-adf-111x-application.html

+0

謝謝你的迴應florinmarcus,我面臨的IE版本的問題,並通過使用JDeveloper的幾個補丁,並通過添加以下上下文參數爲xml文件來解決。 <的context-param> ​​oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS IECompatibilityModes <的context-param> ​​org.apache.myfaces.trinidad.Agent #OVERRIDE_IE_COMPATIBILITY_MODE true user3744303 2015-03-13 05:34:34

0

上面說的問題可以解決通過使用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<pa‌​ram-name> 
    <param-value>true</param-value> 
    </context-param>