Primefaces对话框没有';不要第二次关门
我使用对话框来显示新闻稿。第一次,一切正常:对话框弹出,可以使用X和额外的“关闭”按钮关闭Primefaces对话框没有';不要第二次关门,primefaces,dialog,Primefaces,Dialog,我使用对话框来显示新闻稿。第一次,一切正常:对话框弹出,可以使用X和额外的“关闭”按钮关闭 <h:form id="frmDialog"> <p:dialog header="...: NEWS :..." widgetVar="widgetInfo" modal="true" dynamic="true"> <p:commandButton
<h:form id="frmDialog">
<p:dialog header="...: NEWS :..."
widgetVar="widgetInfo" modal="true" dynamic="true">
<p:commandButton value="close" onclick="widgetInfo.hide();"/>
<p:outputPanel id="pnlNewsLetter" style="width:610px;">
<ui:include src="#{corporateManager.newsLetter}"/>
</p:outputPanel>
</p:dialog>
</h:form>
。。。。
当我单击按钮重新打开同一对话框时,它会打开,但无法关闭。点击X按钮或“关闭”按钮,对话框的全部内容被选中,页面变得不响应,而不是关闭
。。。。。我试过使用p:commandButton,使用oncomplete(),closable=“false”,使用h:button,添加/删除表单标签或id等
环境:Glasfish3.1.2-Netbeans 7.3-Primefaces 3.1-Google Chrome 27.0.1453.94 m感谢我昨天错过的另一篇帖子:, 我已经更改了代码,它按预期运行,为每个按钮显示另一个时事通讯:
<p:commandButton oncomplete="widgetInfo.show();" value="" styleClass="karel4"
update=":pnlNewsLetter">
<f:setPropertyActionListener value="/newsletters/2013-03-19.html" target="#{corporateManager.newsLetter}"/>
</p:commandButton>
我不得不删除
,否则,即使单击另一个按钮,第一份新闻稿也会显示出来。
非常感谢
<p:commandButton oncomplete="widgetInfo.show();" value="" styleClass="karel4"
update=":pnlNewsLetter">
<f:setPropertyActionListener value="/newsletters/2013-03-19.html" target="#{corporateManager.newsLetter}"/>
</p:commandButton>