I found this fragment of code:
#{interpolator.interpolate(messages['myMessage'],jobCount)}
I think this is what you're searching for. Messages and placeHolders
Otherwise you can use string concatenation (ugly) if it's a static message:
<s:decorate template="/layout/panel-name.xhtml">
<ui:define name="label">#{messages['myMessage']} #{jobCount}</ui:define>
</s:decorate>
Or if it's a dynamic message and you're using h:message
Use this syntax in the message properties:
myMessage= User has been assigned {1} jobs
And then when you create the message in the bean
@Name("myBean")
public class Bean {
@In(create = true) FacesMessages facesMessages;
@In Map messages;
public String action() {
// Action here
facesMessages.add(messages.get("myMessage"), jobCount);
}
}