【发布时间】:2017-01-02 08:34:35
【问题描述】:
我正在使用带有以下代码的 PrimeFaces 5.3:
<p:dialog id="dlg1" appendTo="@(body)" header="Confirm Dialog" widgetVar="dlg1" modal="true">
<h:form id="dialogform">
<h:outputText id="confirmlabel" value="Are you Sure you want to #{reportRunnerNamedBean.currentCommand} ?" />
<br/>
<center>
Check to send only missed emails:<p:selectBooleanCheckbox id="sendOnlyMissedBox" value="#{reportRunnerNamedBean.sendMissedOnly}"></p:selectBooleanCheckbox><br/>
<p:commandButton id="yesButton" value="Yes" action="#{reportRunnerNamedBean.runCurrentCommand()}" onstart="startWait();PF('waitDialog').show();" oncomplete="PF('waitDialog').hide();stopWait();" onclick="PF('dlg1').hide();" process="@form"/>
<p:commandButton id="noButton" process="@this" value="No" onclick="PF('dlg1').hide();"/>
</center>
</h:form>
</p:dialog>
无论如何,sendMissedOnly 的支持 bean 值设置为 false。我已通过附加调试器确认了这一点。我什至尝试将ajax添加到框中,每次它仍然是错误的,无论是否选中。 p:selectBooleanCheckbox 不能在对话框中工作吗?
【问题讨论】:
标签: jsf primefaces