Ana içeriğe atla

Kayıtlar

Nitelikli

JSF Internalization / Localization problem: Can't find bundle for base name

I was working on a JSF web application with internalization support for Turkish and English.

Usual way of implementing i18n in JSF is something similar to this

First in faces-config.xml you define locales and bundles:

    <application>
        <locale-config>
            <default-locale>tr</default-locale>
            <supported-locale>en</supported-locale>
        </locale-config>
        <resource-bundle>
            <base-name>com.example.mybundle</base-name>
            <var>i18n</var>
        </resource-bundle>
    </application>


and you put bundle files for each supported locale under the package mentioned above (com.example) and the name of the bundle files are also given as mybundle. English is default locale so you don't need to declare it but for every other locale you either append the language name or the locale name to this base name.


and instead of using "Yes"






you give the label of &…

En Son Yayınlar

Primefaces + MyFaces DataTable bug: Myfaces is not defined

Temel bilgiler ne işimize yarar ?