There are two messages given in the div and if we update that div both the messages get updated then how to update that single messages in primefaces below you can find what i've tried so far
<p:confirmDialog id="deleteDlg" message="Are you sure, you want to delete ?" header="Delete" widgetVar="deleteWidget" closeOnEscape="true" modal="true" draggable="true">
<p:commandButton value="Yes" oncomplete="PF('deleteWidget').hide();" id="yes" actionListener="#{searchBean.onDelete}" update=":terminalSearchForm:deleteDlg terminalSearchForm @(.error)"> </p:commandButton>
<p:commandButton value="No" oncomplete="PF('deleteWidget').hide();" update=":terminalSearchForm:deleteDlg"/>
</p:confirmDialog>