java - p:editor is disabled in modal dialog with appendToBody="true" -


<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> 

when click compose button dialog appeasr editor disabled. i'm updating form used in dialog.

there runtime error in binding bean if error in backing bean example object not initialize...etc runtime error that's why editor appear disable...

so please read simple runtime error create problem model dialog appandtobody="true".


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -