There's no "escape" attribute in p:confirm, so you may try this.
(Which is work when I tried it.)
Page:
<p:commandButton value="Show the Dialog"
onclick="#{MyBean.setMsg('Are you sure you want to continue? <br/> Bla bla bla')}"
oncomplete="conf.show()" update="confDlg">
</p:commandButton>
<p:confirmDialog id="confDlg" severity="alert" header="Confirmation" widgetVar="conf" global="true">
<f:facet name="message">
<h:outputText value="#{MyBean.msg}" escape="false"/>
</f:facet>
</p:confirmDialog>
Backing Bean:(simply getter and setter)
private String msg;
public void setMsg(String msg) {
this.msg = msg;
}
public String getMsg() {
return msg;
}
In this way, you can also take advantage of global confirmDialog.
However, you may need to edit other commandButtons that show confirmDialog.
but I've wanted to use valid HTML here. Funny, that the most correct syntax is not accepted :( – Web Devie Dec 06 '13 at 07:57