I am using JSF and I would like to parameterize the text of a command button similarly to h:outputFormat
.
Something like
<h:commandButton value="Text {0} some more text" [...] >
At the moment I am
<h:commandButton value="Text #{bean.value()} some more text" [...] >
but this makes me split all the texts stored as properties in two each time I have a parameter
<h:commandButton value="#{msg.textbefore} #{bean.value()} #{msg.textafter}" [...] >
Any hint?