简体   繁体   English

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

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

I'm using IceFace 3.3.0 with MyFaces. 我在MyFaces中使用IceFace 3.3.0。 I have a problem with ace:dialog. 我有ace:dialog问题。 It's not working on IE 7 or 8, it works fine with any other browser. 在IE 7或8上无法正常工作,在任何其他浏览器上都可以正常工作。

Here's a simple example that shows the problem: 这是一个显示问题的简单示例:

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

On IE8, this code will not show the dialog and produces a JavaScript error when loading the page: 在IE8上,此代码将不会显示对话框,并在加载页面时产生JavaScript错误:

SCRIPT438 object doesn't support this property or method

The JavaScript error appears on this generated line: 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}])

I already tried different versions of MyFaces and even Mojarra, so I think this is an icefaces issue. 我已经尝试过不同版本的MyFaces甚至Mojarra,所以我认为这是一个难题。

Any help is appreciated! 任何帮助表示赞赏!

The dialog must be enclosed in a form or even the content can be enclosed by form as shown in the link. 对话框必须以某种形式包含,甚至内容也可以用链接中所示的形式包含。

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

For more information, Ace Dialog 有关更多信息, Ace对话框

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

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