如何解决为什么我看不到ICEfaces ace:sliderEntry?
我有一个问题,无法解决很长时间。我不能在项目中使用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>
标签
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。