【发布时间】:2011-03-23 07:46:28
【问题描述】:
我在一个项目中使用 Primefaces,我看到 IE 与 chrome/firefox/safari 在模态 Primefaces 对话框窗口方面的结果不佳,我认为这与表单放置有关。在 IE 中,这些对话框不会出现,但我可以看到透明度。在 chrome/firefox 中,它们很好。以下情况的最佳做法是什么:
具有一种表单的列表项基本 xhtml 页面。这个页面有几个 打开有自己的 ajax 提交的对话框的链接 (commandButton, commandLink) 事件。
对话框应该位于基本 xhtml 页面的表单内部还是外部?
对话框应该有自己的形式吗?
下图为:
<html>
<ui:composition>
<ui:define name="content">
<h:form id="xyz">
//main page content here, commandButtons, commandLinks...etc
</h:form>
<dc:zoomDialog/>
</ui:define>
</ui:composition>
</html>
<!-- zoomDialog maps to the below -->
<html>
<ui:component>
<h:form id="dialogFrm">
<p:dialog widgetVar="zoomDlg" modal="true" styleClass="dialog dialog2"
draggable="false" resizable="false" showEffect="fade"
hideEffect="fade">
//dialog content here, commandButton, commanLink...etc
</p:dialog>
</h:form>
</ui:component>
【问题讨论】:
标签: primefaces