Skip to content

jsf:Can't find bundle for base name com.xxy.welcome_en.properties, locale en #2

@windli93

Description

@windli93

我在学习到jsf第9个和第10个例子的时候,发现使用eclipse无法绑定系统资源,即使在资源后面补齐后缀名也无济于事,Idea倒是可以运行,参考stackoverflow上的几篇文章也无法解决,怎么办。

<faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
    http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
     <application>
        <locale-config>
            <default-locale>en</default-locale>
        </locale-config>
        <resource-bundle>
            <base-name>com.xxy.welcome_en.properties</base-name>
            <var>msg</var>
        </resource-bundle>
     </application>
</faces-config>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions