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()
精彩评论