开发者

JSF Supported Languages from ManagedBeans

I've defined my supported languages in faces-config.xml as follow:

<locale-config>
  <default-locale>fa</default-locale>
  <supported-locale>fa</supported-locale>
  <supported-locale>en</supported-locale>
</locale-config>

How can I access supported locales in a ManagedBean ? e.g. to populate 开发者_开发问答a list with corresponding items.


FacesContext.getCurrentInstance().getApplication().getSupportedLocales()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜