When using <p:confirmDialog> in a context that is under Partial response update, you'll see a small glitch when the section refreshes. For example:
Code: Select all
<p:panel id="customerDetails" header="Details" toggleable="true" toggleSpeed="500">
<p:messages showDetail="true"/>
<h:panelGrid rendered="#{!editCustomerController.editMode}" columns="2">
<h:outputText value="* Name:"/>
<h:outputText value="#{editCustomerController.current.name}"/>
</h:panelGrid>
<h:panelGrid rendered="#{editCustomerController.editMode}" columns="2">
<h:outputText value="* Name:"/>
<h:inputText value="#{editCustomerController.current.name}" size="50" required="true"/>
</h:panelGrid>
<p align="right">
<p:commandButton update="customerDetails,customerTable" styleClass="button-blue" rendered="#{editCustomerController.canDelete}" value="Delete" actionListener="#{editCustomerController.delete}">
<p:confirmDialog message="Delete the selected Customer?" severity="warn"/>
</p:commandButton>
</p>
</p:panel>
Is this something that is fixable, or should i take a different approach here?
Thanks,
Sander