私が使用modal= true
しappendToBody=true
ているダイアログでは、ChromeとFirefoxで正常に動作しますが、IE8では動作しません。ダイアログが表示されますが、ダイアログを閉じると、が原因で背景がまだ青色のままですがmodal=true
、これを使用する必要があります。
これは私のコードです:
<ui:composition template="../templates/site.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:sec="http://www.springframework.org/security/tags">
<ui:define name="content">
<h:form id="form">
<p:commandButton value="Button" type="button" id="myButton"
onclick="form:testDialog.show()" />
<p:dialog id="testDialog" widgetVar="testDialog"
header="My Test Dialog" modal="true" appendToBody="true">
<h:form>
<p:fieldset legend="Dialog">
<p:spacer height="30" />
</p:fieldset>
</h:form>
</p:dialog>
</h:form>
</ui:define>
</ui:composition>
編集:
問題はダイアログの命名でした。IDとwidgetVarに同じ名前を付けることはできません。この投稿に関連する