I just did a quick search on
JSF i18n and it linked me to
this post on the ranch
Full details on i18n with JSF can be found in
The JSF Tutorial
But basically
- put ALL your translatable text into a message properties file
- import your properties file into the JSF page with the <f:loadBundle> tag
- anywhere you want to display the text from the properties bundle, use the <h:outputText> tag
That would print out a translated "user" string, and then the value of the beans "country" straight from the bean.
If you also wanted to translate the country (as you did in your example), you would have to make the country stored in the bean a country code to look it up in the properties file.
cheers,
Stefan