问题描述
我有一个问题,无法解决很长时间。我不能在项目中使用icefaces slideEntry,而是这样做:
pom:
<repository>
<id>snapshots</id>
<url>http://anonsvn.icefaces.org/repo/maven2/releases/</url>
</repository>
更多:
<dependency>
<scope>provided</scope>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-ace</artifactId>
<version>3.1.0</version>
</dependency>
在我的xhtml中:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
xmlns:ace="http://www.icefaces.org/icefaces/components"
>
所以我叫滑块:
<h:form>
<ace:sliderEntry />
</h:form>
但是我没有在页面上看到它,调试工具也没有说任何有用的东西。也许我移植了错误的内容?
UPD 我注意到浏览器中的此元素具有隐藏类型,为什么会发生这种情况?
解决方法
使用
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-ace</artifactId>
<version>4.3.0</version>
</dependency>
并确保所有icefaces库都具有“编译”作用域
您还需要使用<h:body>
代替默认的<body>
标签