Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Can';不要在MyFaces 2.2中使用战斧_Maven_Intellij Idea_Jsf 2.2_Myfaces_Tomahawk - Fatal编程技术网

Maven Can';不要在MyFaces 2.2中使用战斧

Maven Can';不要在MyFaces 2.2中使用战斧,maven,intellij-idea,jsf-2.2,myfaces,tomahawk,Maven,Intellij Idea,Jsf 2.2,Myfaces,Tomahawk,我试图在使用MyFaces2.2.12的项目的Facelet中使用来自Tomahawktaglib的标记。Facelet的开头如下所示: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://

我试图在使用MyFaces2.2.12的项目的Facelet中使用来自
Tomahawk
taglib的标记。Facelet的开头如下所示:

<!DOCTYPE html>
<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:t="http://myfaces.apache.org/tomahawk">
    <dependency>
        <groupId>org.apache.myfaces.tomahawk</groupId>
        <artifactId>tomahawk21</artifactId>
        <version>1.1.14</version>
    </dependency>
现在,当我在Facelet中使用像
这样的标记时,我的IDE(IntelliJ CE 2017 1.1)会显示错误

Cannot resolve symbol 't:panelGroup'
当我将鼠标悬停在标签上时,即使它看起来确实如此

为了确保maven工作正常,我检查了
Tomahawk
库是否包含在我的
WEB-INF/lib
目录中,实际上,我在那里找到了文件
tomahawk21-1.1.14.jar

我还尝试将命名空间URI从
http://myfaces.apache.org/tomahawk
http://myfaces.apache.org/tomahawk21
,但这没有任何效果


有人能帮我解决这个问题吗?

您的应用程序实际运行吗?也许tomahawk标记库对于IDE来说是错误的是的,应用程序可以工作。但是tomahawk标记不会被渲染。您所说的“tomahawk taglib对于ide来说是错误的”是什么意思?IDE与所使用的标记库有什么关系?我最后的评论是错误的,tomahawk标记确实得到了渲染,但整个IDE都充斥着“无法解析符号”错误,因此很难发现实际的错误。