【发布时间】:2011-10-25 08:39:44
【问题描述】:
在运行我的应用程序时出现以下错误:
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。
我错过了什么?
【问题讨论】: