当我单击 p:commandButton 以显示 ap:dialog 时出现 javacript 错误。
请找出以下错误:
Message: Object doesn't support this property or method
Line: 1
Char: 169
Code: 0
URI: http://localhost:8080/idm/javax.faces.resource/dialog/dialog.js.xhtml? ln=primefaces&v=2.2.1
Message: Object doesn't support this property or method
Line: 1
Char: 133
Code: 0
URI: http://localhost:8080/idm/javax.faces.resource/button/button.js.xhtml?ln=primefaces&v=2.2.1
这是代码块:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<p:commandButton value="save" onclick="dlg1.show();" ></p:commandButton>
<p:dialog id="basicDialog" header="Basic Dialog" widgetVar="dlg1">
<h:outputText value="Resistance to PrimeFaces is futile!" />
</p:dialog>
</ui:composition>
所有其他 primefaces 组件都工作正常。
任何帮助,将不胜感激。