On 1/7/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > I want to do something like this in JSF: > <bean:message key="affirmation.link1" arg0="<%=szFormType%>"/> > > Which I think translates to > > <h:outputText value="#{bundle.affirmation.link1"> > <f:param value="#{szFormType}"/> > </h:outputText>
Is this correct? Almost ... first, try it with <h:outputFormat> instead of <h:outputText>. And, if you've loaded message bundles that have keys with periods in them, here's a trick that will simplify your life: <h:outputText value="#{bundle['affirmation.link1']}"> <f:param value="#{szFormType}"/> </h:outputText> Shawn Craig