在运行我的应用程序时,我遇到了以下错误:
在我的 faces-config 中我指定了以下内容:
javax.el.ELException: /view/doi/common/navigation.xhtml: Can't find bundle for base name messages, locale de_CH
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:90)
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
在我的 faces-config 中我指定了以下内容:
<resource-bundle>
<base-name>messages</base-name>
<var>msg</var>
</resource-bundle>
我有一个目录src\web\resources\msg,其中包含文件messages_en.propeties。
我错过了什么?