JSF 2 localization (managed bean)

前端 未结 5 1602
生来不讨喜
生来不讨喜 2020-12-24 04:23

I have a properties file for localization:

foo=Bar
title=Widget Application

This is tied in as a resource-bundle in the face

5条回答
  •  被撕碎了的回忆
    2020-12-24 04:47

    Here's an example on how to do this: http://www.laliluna.de/articles/javaserver-faces-message-resource-bundle-tutorial.html

    You want to have a look at the ResourceBundle.getBundle() part.

    Greetings, Lars

提交回复
热议问题