primefaces 6 IE11对话框为空

时间:2016-09-26 14:01:40

标签: jsf primefaces

我正在从3.4升级到PF 6.突然,对话框在IE中不起作用,虽然我升级为使用PF lib。所以我现在正在测试PF演示代码。演示代码也不起作用。

<h:panelGrid columns="1" cellpadding="5">
<p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" />

<p:commandButton value="Modal" type="button" onclick="PF('dlg2').show();" />

<p:commandButton value="Effects" type="button" onclick="PF('dlg3').show();"    /> 
</h:panelGrid>

<p:dialog header="Basic Dialog" widgetVar="dlg1" minHeight="40">
   <h:outputText value="Resistance to PrimeFaces is futile!" />
</p:dialog>

<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="100">
<h:outputText value="This is a Modal Dialog." />
</p:dialog>   

<p:dialog header="Effects" widgetVar="dlg3" showEffect="explode"  hideEffect="bounce" height="100">
<h:outputText value="This dialog has nice effects." />
</p:dialog>

在IE11中,我进入控制台:

PF('dlg1').show();" type="button"><span class="ui-butt
Unable to get property 'show' of undefined or null reference

我对JSF很有经验,但也许我错过了PrimeFaces的一些升级设置?

0 个答案:

没有答案