NLS缺少消息:CANNOT_FIND_FACELET_TAGLIB

时间:2011-09-25 14:41:28

标签: eclipse jsf jsf-2

我在Eclipse中收到此警告:

  

NLS缺失消息:CANNOT_FIND_FACELET_TAGLIB:         org.eclipse.jst.jsf.core.validation.internal.facelet.messages ICEfacesPage1.xhtml / myapp / src / main / webapp

在以下几行:

xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"

任何想法,以及如何解决它?

3 个答案:

答案 0 :(得分:65)

这是一个Eclipse的怪癖。请尝试以下方法之一:

  • 关闭/重新开启项目。
  • 右键单击项目> 验证
  • 项目>清理...... 并清理所选项目。
  • 重启Eclipse。

答案 1 :(得分:4)

当我导入JSP taglib时也是这种情况,例如:

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:fmt="http://java.sun.com/jstl/fmt">
</html>

我关闭了项目并重新打开,它运作良好!

Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1
Build id: 20110916-0149

答案 2 :(得分:0)

我意识到这是一个老帖子,但我希望这可能对某些人有所帮助。 我最近为Eclipse 4.3(Kepler)安装了ICEfaces插件(IF-3.3.0-IM-1.3.0-Eclipse-4.3-plugins-B.zip)。

我使用页面创建向导创建了一个新的ICEface Facelets组合页面。

enter image description here

创建页面后,我收到了相同的警告信息。

enter image description here

我检查了创建ICEfaces应用程序时生成的index.xhtml,并且存在差异。

enter image description here

将我的新页面从www.icesoft.org更改为www.icefaces.org,警告消失。

enter image description here