This content has been marked as final.
Show 3 replies
-
1. Re: I18N and parameters
luxspes Aug 5, 2008 11:19 PM (in response to mvlach)I am really not sure, but I guess it should be something like:
Message resource bundle
any_key=User {0} enabled.
Page:
<h:outputFormat value="#{messages['any_key']}"> <f:param value="Peter" /> </h:outputFormat>
Output:
User Peter enabled.
Check this for more details.
-
-
3. Re: I18N and parameters
atao Aug 6, 2008 1:22 AM (in response to mvlach)In place where you can't use the
f:param
solution, then there is the verbose one: call directly interpolator.interpolate. E.g.:<rich:simpleTogglePanel label="#{interpolator.interpolate(messages['view.list.title.search.entity'], messages['entity.address.label'])}" switchType="ajax">