我正在使用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时,我的jars指向web/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>

发布于 2016-07-18 15:52:25
最后,我找到了答案,因为我认为依赖的问题
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-ace</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>https://stackoverflow.com/questions/38429825
复制相似问题