2013-04-30 71 views
0

正確地呈現,同時它工作正常鉻號碼:編輯鉻可見,但不是在IE

我已經實現P中的編輯器不會出現在我的IE窗口:佈局和中心layoutunit我包括使用的template.xhtml UI:包括被封閉在一個

<h:form id="centercontentpanel"> 

請指引我需要什麼修正工作要做,以使其可見在IE 8

的template.xhtml

<?xml version='1.0' encoding='UTF-8' ?> 
<!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:h="http://java.sun.com/jsf/html" 
    xmlns:p="http://primefaces.org/ui" 
    xmlns:f="http://java.sun.com/jsf/core"> 

<h:body> 
<f:view> 
    <p:editor id="editor" value="#{editorBean.value}"/> 
    <h:panelGrid columns="2" style="margin-top:10px"> 
     <p:commandButton id="submitButton" value="Submit" update="display" oncomplete="editordlg.show()" 
        icon="ui-icon-disk" /> 
     <p:commandButton id="clearButton" type="button" value="Clear" onclick="editor.clear()" 
        icon="ui-icon-close"/> 
    </h:panelGrid> 
    <p:dialog header="Content" widgetVar="editordlg" showEffect="fade" hideEffect="fade" modal="true"> 
     <h:outputText id="display" value="#{editorBean.value}" escape="false" /> 
    </p:dialog> 
</f:view> 
</h:body> 

</html> 

回答

1

對於我所知道的,IE 8不支持Primefaces Editor,仍然在IE 11中。 其實我可以渲染它,但沒有任何作用,甚至沒有大膽/斜體/下劃線。

我認爲這是因爲IE處理JavaScript的方式......但我對技術問題了解不多。

(我的測試是在IE 11和Primefaces 4.0,普通編程完成,沒有任何抽搐)只爲富文本我使用的是HTML5庫wysihtml5(GIT)

編輯: 對不起,我只是偶然在answear我的問題(編輯在IE瀏覽器),希望它修復你的 只需添加contentType="text/html"<f:view>這樣<f:view contentType="text/html"> Here是來自Optimus的帖子(儘管它是Chrome的渲染問題)