jsf - primefaces dialog disappears after show up -
i have commandbutton , dialog. problem after dialog box appears, disappears(1-2 miliseconds later). there problem commandbutton or dialog issue?
<p:commandbutton id="showdetailsbutton" title="details" onclick="details.show();" process="@this" update=":tabview:myform:mydialogid" icon="ui-icon-search"> </p:commandbutton> <p:dialog id="mydialogid" header="details" widgetvar="details" resizable="false" height="600" width="450" > //some stuff </p:dialog>
changed onclick oncomplete , it's working perfectly.
<p:commandbutton id="showdetailsbutton" title="details" oncomplete="details.show();" process="@this" update=":tabview:myform:mydialogid" icon="ui-icon-search">
Comments
Post a Comment