[WG: I18N & L10N] i18n: JSF and getFormattedMessage
DAVID ROLDAN MARTINEZ
darolmar at upvnet.upv.es
Thu Jan 6 13:16:25 PST 2011
Hi all,
I've never tested but if the following code works (and it does):
<h:outputFormat value="Hello,{0}. You are from {1}.">
<f:param value="J-F" />
<f:param value="France" />
</h:outputFormat>
Then, the following should also work:
<h:outputFormat value="#{msgs.salutation}">
<f:param value="J-F" />
<f:param value="France" />
</h:outputFormat>
where msgs is an instance of ResourceLoader and salutation = Hello,{0}. You are from {1}.
If works, please let me know and I'll include it at confluence.
What I'm sure it will work is:
<h:outputFormat value="#{msgs.salutation}">
<f:param value="J-F" />
<f:param value="France" />
</h:outputFormat>
In fact, you can find examples at chat tool (room.jsp).
Hope this helps.
David
________________________________________
De: Jean-Francois Leveque [jean-francois.leveque at upmc.fr]
Enviado el: miércoles, 05 de enero de 2011 17:44
Para: i18n at collab.sakaiproject.org; sakai-dev Developers; Beth Kirschner; DAVID ROLDAN MARTINEZ
Asunto: i18n: JSF and getFormattedMessage
Hi all,
I can't find the following information in
https://confluence.sakaiproject.org/display/I18N/Best+Practices+for+Internationalized+Tools+in+Sakai.
Can getFormattedMessage be used in JSF? If it can, how is it done?
Cheers,
J-F
More information about the i18n
mailing list