Is there a way where I can define a parameter message in a <p:confirmaDialog> ?
Let's say I have a message in resource bundle like:
Code: Select all
hello_msg=Hello {0}
Code: Select all
<p:confirmDialog message="#{msgs.hello_ms}"
showEffect="bounce" hideEffect="explode"
header="Welcome" severity="info" widgetVar="helloDiag" >
<p:commandButton value="Ok" type="button" onclick="helloDiag.hide()"/>
</p:confirmDialog>
Using a tag from jsf <h:outputFormat> that will be possible.
Code: Select all
<h:outputFormat value="#{msgs['hello_msg']}">
<f:param value="John" />
</h:outputFormat>
Thanks,