kei*_*eri 4 jsf netbeans pom.xml maven
我的 java 代码有一些错误问题。
我有以下代码:
<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:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
xmlns:s="http://www.sensap.eu/jsf"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:dialogs="http://java.sun.com/jsf/composite/components/dialogs"
xmlns:widgets="http://java.sun.com/jsf/composite/components/widgets">
Run Code Online (Sandbox Code Playgroud)
当我编译代码时,它给了我以下错误:
没有找到命名空间http://java.sun.com/jsf/composite/components/dialogs 没有找到命名空间http://java.sun.com/jsf/composite/components/widgets 的库
我试图检查 pom.xml 是否正常,但从我的角度来看,它看起来不错。我不知道接下来要做什么!!!
这些http://java.sun.com/jsf/composite/*
命名空间不引用外部库。所以你的 Maven 配置实际上是无关紧要的。这些http://java.sun.com/jsf/composite/*
命名空间指的是所谓的复合组件,它们实际上/resources
是您自己的 web 应用程序文件夹中的XHTML 文件,这些文件又使用<cc:interface><cc:implementation>
声明。
给定命名空间,您应该具有以下内容:
Web Pages
|-- resources
| |-- components
| | |-- dialogs
| | | |-- somedialog.xhtml
| | | `-- otherdialog.xhtml
| | `-- widgets
| | |-- somewidget.xhtml
| | `-- otherwidget.xhtml
: :
Run Code Online (Sandbox Code Playgroud)
如果您确实拥有它们并且您的 web 应用程序与这些组合一起正确运行,那么只是 Netbeans 本身不够聪明,无法看到它们并给出错误的错误。升级 Netbeans 和/或向 Netbeans 人员报告问题应该可以解决它。
归档时间: |
|
查看次数: |
4653 次 |
最近记录: |