繁体   English   中英

IceFaces 3.3:ace:dialog无法与IE8一起使用

[英]IceFaces 3.3: ace:dialog not working with IE8

我在MyFaces中使用IceFace 3.3.0。 我有ace:dialog问题。 在IE 7或8上无法正常工作,在任何其他浏览器上都可以正常工作。

这是一个显示问题的简单示例:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de" lang="de" xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:icecore="http://www.icefaces.org/icefaces/core"
  xmlns:ace="http://www.icefaces.org/icefaces/components"
  xmlns:ice="http://www.icesoft.com/icefaces/component"
>
<h:head>
  <title></title>
</h:head>
<h:body>
<ace:dialog id="helpDialog" header="Help" widgetVar="helpDialog"
  closable="true" modal="true" draggable="false" showEffect="clip"
  hideEffect="fade" closeOnEscape="true" width="400" height="600">
  <h:outputText value="Help Dialog" />
</ace:dialog>

<h:form id="myform">
  <ace:panel id="mypanel" header="Test" closable="false" toggleable="false">
    <h:commandLink immediate="true" value="&gt; Dialog" onclick="helpDialog.show();" />
  </ace:panel>
</h:form>
</h:body>
</html>

在IE8上,此代码将不会显示对话框,并在加载页面时产生JavaScript错误:

SCRIPT438 object doesn't support this property or method

JavaScript错误出现在此生成的行上:

helpDialog = ice.ace.create("Dialog",["helpDialog_main",{"isVisible":false,"minHeight":0,"width":400,"height":600,"draggable":false,"modal":true,"show":"clip","hide":"fade","title":"Help","ariaEnabled":true}])

我已经尝试过不同版本的MyFaces甚至Mojarra,所以我认为这是一个难题。

任何帮助表示赞赏!

对话框必须以某种形式包含,甚至内容也可以用链接中所示的形式包含。

<h:form>
  <ace:dialog id="helpDialog" header="Help" widgetVar="helpDialog"
    closable="true" modal="true" draggable="false" showEffect="clip"
    hideEffect="fade" closeOnEscape="true" width="400" height="600">
    <h:outputText value="Help Dialog" />
  </ace:dialog>
</h:form>

有关更多信息, Ace对话框

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM