Javascript IceFaces 3.3:ace:对话框不使用IE8
我正在对MyFaces使用IceFace 3.3.0。我对ace:dialog有问题。它不适用于IE7或IE8,适用于任何其他浏览器 下面是一个简单的示例,说明了问题:Javascript IceFaces 3.3:ace:对话框不使用IE8,javascript,internet-explorer,icefaces,Javascript,Internet Explorer,Icefaces,我正在对MyFaces使用IceFace 3.3.0。我对ace:dialog有问题。它不适用于IE7或IE8,适用于任何其他浏览器 下面是一个简单的示例,说明了问题: <?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-transiti
<?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="> Dialog" onclick="helpDialog.show();" />
</ace:panel>
</h:form>
</h:body>
</html>
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,所以我认为这是icefaces的问题
感谢您的帮助 对话框必须包含在表单中,甚至内容也可以包含在表单中,如链接所示
<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>
有关详细信息,不幸的是,此解决方案不适用于我。你还知道其他方法吗?
<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>