<p:commandButton id="composeBtn" icon="ui-icon ui-icon-document"
oncomplete="composeDlg.show()" update=":frmCompose ,:frmCompose:dlgpnl">
</p:commandButton>
<p:dialog widgetVar="composeDlg" modal="true" id="dlgcompose"
appendToBody="true" showEffect="fade" hideEffect="fade">
<h:form id="frmCompose" enctype="multipart/form-data">
<p:editor widgetVar="editor" value="#{newMail.body}" />
<p:separator>
<p:commandButton value="# erLbl['mailBox.cmdSend']}" ajex="false"
action="#{pc_mailBean.submit()}" update=":frm:msg"
oncomplete="composeDlg.hide()" />
<p:commandButton value="#{commonLbl['cmdCancel']}"
oncomplete="composeDlg.hide()" />
</h:form>
</p:dialog>
当我单击撰写按钮时,对话框出现,但编辑器已禁用。我正在更新对话框中使用的表单。