IE8中p对话框(Primefaces)的内容为空

时间:2014-01-24 08:11:45

标签: jsf primefaces internet-explorer-8 weblogic12c

所以,我们正在经历一个非常奇怪的问题,并希望看看是否有其他人经历过这个问题。我们使用Primefaces 4.0,JSF 2.1.27 Mojarra构建了一个应用程序。部署到WL 12.1.1上。在IE8中测试过。

因此,有一个“配置文件”页面,它有一个对话框,当用户点击“编辑配置文件”时,会出现一个带有表单的对话框,用户编辑信息然后保存,对话框关闭,然后更新信息显示在页面。

所以当我在我的本地weblogic 12.1.1上运行它时,一切都运行得很好。不仅是我,其他几位同事也对它进行了测试,它在当地的WL中工作得很好,IE8,Chrome等也是如此

因此,我们部署到我们公司的DEV服务器WL 12.1.2,然后在IE8中进行测试,当我们点击该编辑配置文件p commandLink时,对话框打开,其中没有内容。它只是对话框。它适用于其他浏览器并且很好。

我看到的唯一变化是服务器。

以下是该页面上commandLink的代码:

<p:commandLink value="Edit Profile Info"
                    oncomplete="PF('profileInfoDialog').show()" update=":editProfileForm" 
                    style="text-decoration:none;color:blue;font-style:italic" />

这是对话框,内容是长代码,但我不认为内容与它有任何关系:

<p:dialog header="Edit Profile Info" widgetVar="profileInfoDialog" closable="false"
        style="border:1px 0" modal="true" appendToBody="true" id="profileInfoDialogId" dynamic="true">
            <h:form id="editProfileForm">
       //All the input fields and other content
    <h:panelGrid columns="3">
                        <p:commandButton id="submitButton" value="Save"
                            partialSubmit="true" validateClient="true"
                            update=":editProfileForm:messages"
                            actionListener="#{profileInfoBean.saveProfile}"
                            oncomplete="if (!args.validationFailed  &amp;&amp; args.saved) PF('profileInfoDialog').hide();"/>
                        <h:outputText
                            value="By clicking Save, I verify the information on this screen is accurate." />
                        <p:commandButton id="cancelButton" value="Cancel" type="button" update="editProfileForm"
                            onclick="PF('profileInfoDialog').hide();">
                             <p:resetInput target="editProfileForm" />
                            </p:commandButton>

                    </h:panelGrid>

                </h:form>
        </p:dialog>

我强调服务器版本的原因是,我刚试过我朋友的一个本地weblogic服务器12.1.2,他和IE有同样的问题。 我已经尝试删除modal = true和appendToBody = true,但没有任何效果。我非常感谢这里的帮助,因为我们正在前往质量保证,这已成为一个障碍。

谢谢!

1 个答案:

答案 0 :(得分:1)

@Makky:感谢您帮助我诊断问题!

这对我有用:

<h:head>

<f:facet name="first">

    <meta http-equiv="content-type"
        content="text/html; charset=windows-1250" />

    <meta http-equiv="x-ua-compatible" content="IE=8" />

</f:facet>

</h:head>