【发布时间】:2014-09-22 16:26:28
【问题描述】:
当我尝试在 Primefaces 上打开对话框时出现错误,我不明白为什么会发生这种情况。
这是我的页面代码:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<body>
<ui:composition template="./template/template.xhtml">
<ui:define name="content">
<p:commandButton value="Abrir" oncomplete="w_dlgTeste.show()"/>
<p:confirmDialog header="Erro desnecessário." message="Não estou a entender nada." widgetVar="w_dlgTeste" />
</ui:define>
</ui:composition>
</body>
</html>
在谷歌浏览器 Javascript 控制台上我看到了这个:
【问题讨论】:
标签: javascript jsf jsf-2 primefaces