In jsf according to what I read I can replace parameters in a resource bundle string using
<h:outputFormat value="#{msg['message.param2']}">
<f:param value="param0" />
<f:param value="param1" />
</h:outputFormat>
My problem is I am working with a primefaces tag and I need to use the attribute requiredMessage
of inputText
, similar to this:
<p:inputText value="#{cteYDetalleMb.cteEnCaptura.nombreComercial}" style="width: 50em" required="true"
requiredMessage="#{msg['validacion.datosRequeridos']}" />
My message to validacion.datosRequeridos
is requiring a parameter and the example working above is different. How can i resolve this, i try to use <f:param>
but it does not work.