[英]How to reactivate code assist in my xhtml page (eclipse 3.5, jboss tools 3.1, jsf 1.2)
[英]How to get .xhtml code assist for IceFaces 4?
我正在创建一个具有JSF + ICEFACES集成的项目,但是在Eclipse中,我没有获得IceFaces的.xhtml代码辅助,但它为jsf提供了代码辅助。 我确信这是因为罐子而发生的,这是我完整的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>
最终我找到了答案,因为我认为依赖项存在问题
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.