gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 05:15:28 27 4
gpt4 key购买 nike

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

buildscript:

 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 App库中。就像在其他帖子中建议我清理,重新启动Eclipse并打开/关闭项目一样。

最佳答案

RichFaces 4.3.x有4个 jar :

  • richfaces-core-api.jar
  • richfaces-core-impl.jar
  • richfaces-components-api.jar
  • richfaces-components-ui.jar(这里是标签库)

  • 参见 docs

    关于gradle - 使用Gradle设置Richfaces-NLS缺少消息:CANNOT_FIND_FACELET_TAGLIB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32103779/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com