This is not possible with the <f:param>
of the standard JSF implementation. This is however possible with the <o:param>
of JSF utility library OmniFaces which has enhanced the <f:param>
with the support of supplying real JSF code as format parameter.
Here's how you can solve it using <o:param>
:
<h:outputFormat value="Sent {0} to {1} different people" escape="false">
<o:param>
<h:inputText value="#{bean.input}" />
</o:param>
<o:param>
<h:selectOneMenu value="#{bean.number}">
<f:selectItems value="#{bean.numbers}" />
</h:selectOneMenu>
</o:param>
</h:outputFormat>