【发布时间】:2016-11-20 15:41:55
【问题描述】:
我正在创建一个具有 JSF+ICEFACES 集成的项目,但在 Eclipse 中,我没有获得 IceFaces 的 .xhtml 代码辅助,但它正在为 jsf 提供代码辅助。我确信它正在发生,因为这里的 jars 是我完整的 maven 依赖项
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-ace</artifactId>
<version>4.0.0</version>
<type>pom</type>
</dependency>
<!-- https://mvnrepository.com/artifact/org.icepush/icepush -->
<dependency>
<groupId>org.icepush</groupId>
<artifactId>icepush</artifactId>
<version>4.0.0</version>
</dependency>
当我使用 eclipse mars 时,我的 jar 指向 web-inf/lib。
我在 xhtml 中添加了这些名称空间
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ace="http://www.icefaces.org/icefaces/components">
</html>
【问题讨论】:
-
如果您的应用程序本身可以工作,则不会缺少 .jar。
-
但是为什么它没有给我自动建议?
-
不知道..我不是icefaces用户。