使用 gradle 设置 richfaces - NLS 缺少消息:CANNOT_FIND_FACELET_TAGLIB

Setup richfaces with gradle - NLS missing message: CANNOT_FIND_FACELET_TAGLIB

我刚刚使用 gradle 创建了一个动态 Web 应用程序并尝试添加 richfaces。

构建脚本:

 dependencies {
        compile 'com.sun.faces:jsf-api:2.2.9'
        compile 'com.sun.faces:jsf-impl:2.2.9'
        compile 'jstl:jstl:1.2'
        compile 'org.richfaces.ui:richfaces-components-api:4.3.7.Final'
        compile 'com.google.inject:guice:4.0'

        compile group: 'com.google.guava', name: 'guava', version: '18.0'
    }

页眉

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

两个标记库 (a4j/rich) 都突出显示并显示以下警告:

NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages

我是不是忘记了一步或者我哪里做错了?

我已经 运行 构建脚本并刷新了依赖项。 richface 已添加到 Web 应用程序库中。就像其他帖子中建议的那样,我已经清理、重新启动了 eclipse 和 opened/closed 项目。

RichFaces 4.3.x 有 4 个罐子:

  • richfaces-核心-api.jar
  • richfaces-核心-impl.jar
  • richfaces-组件-api.jar
  • richfaces-components-ui.jar(这里是标签库)

查看 docs

compile 'org.richfaces.core:richfaces-core-api:4.3.7.Final'
compile 'org.richfaces.core:richfaces-core-impl:4.3.7.Final'
compile 'org.richfaces.ui:richfaces-components-api:4.3.7.Final'
compile 'org.richfaces.ui:richfaces-components-ui:4.3.7.Final'

已修复。