JSF:javax.faces.FacesException:无法添加同一组件两次:vaz4n2检索更新

JSF:javax.faces.FacesException:无法添加同一组件两次:vaz4n2检索更新,jsf,eclipse-plugin,icefaces-3,Jsf,Eclipse Plugin,Icefaces 3,我是JSF初学者。我尝试在Eclipse4.2(Juno)中实现IceFaces3.0组件。我已经使用ApacheTomcat7.0实现并运行了它。它在窗口中显示以下错误: 不能添加同一组件两次 在控制台栏中,它显示为: javax.faces.FacesException: Cannot add the same component twice: v8z4ho2-retrieve-update 我的JSF代码 <?xml version='1.0' encoding='UTF-8' ?

我是JSF初学者。我尝试在Eclipse4.2(Juno)中实现IceFaces3.0组件。我已经使用ApacheTomcat7.0实现并运行了它。它在窗口中显示以下错误:

不能添加同一组件两次

在控制台栏中,它显示为:

javax.faces.FacesException: Cannot add the same component twice: v8z4ho2-retrieve-update
我的JSF代码

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"  
    xmlns:ace="http://www.icefaces.org/icefaces/components"   
    xmlns:ice="http://www.icesoft.com/icefaces/component" >

<h:head>
    <title>Chart</title>
    <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"/>
</h:head>

<h:body styleClass="ice-skin-rime">     
    <h:form id="canvasForm">
        <ace:chart id="chart" animated="false" value="#{chartBean.barData}"
            stackSeries="false" defaultAxesConfig="#{chartBean.barDemoDefaultAxis}"
            xAxis="#{chartBean.barDemoXAxis}" yAxis="#{chartBean.barDemoYAxis}"
            legend="true"  legendPlacement="OUTSIDE_GRID" highlighter="true"
            highlighterLocation="N" highlighterShowMarker="false"       
            highlighterBringSeriesToFront="true"
            widgetVar="barChart" />
    </h:form>    
</h:body>
</html>

图表

如何纠正这个错误?帮帮我。

在ICEFaces论坛上,我发现很多人都有这个问题。如果您使用的是Tomcat7.0.42,请改用Tomcat7.0.41,看看它是否有效。还要检查是否在同一类路径中复制了icefaces jar(或icefaces.jar和icefaces ee.jar)。该帖子的链接是:


通过将icefaces版本从3.3.0恢复到3.0.1进行修复:

    <!-- Ices Dependencies -->
    <dependency>
        <groupId>org.icefaces</groupId>
        <artifactId>icefaces</artifactId>
        <version>3.0.1</version>
    </dependency>

    <dependency>
        <groupId>org.icefaces</groupId>
        <artifactId>icefaces-ace</artifactId>
        <version>3.0.1</version>
    </dependency>

    <dependency>
        <groupId>org.icefaces</groupId>
        <artifactId>icefaces-compat</artifactId>
        <version>3.0.1</version>
    </dependency>

    <dependency>
        <groupId>org.icepush</groupId>
        <artifactId>icepush</artifactId>
        <version>3.1.0</version>
    </dependency>

org.icefaces
冰面
3.0.1
org.icefaces
冰面王牌
3.0.1
org.icefaces
冰面同胞
3.0.1
org.icepush
冰推
3.1.0

@初学者Java:library/framework/API名称如“ICEFaces”、“Tomcat”等不是代码!请停止在“建议的编辑”中将它们错误地格式化为代码。@BalusC我编辑过,因为我曾在几篇文章中看到它被用作突出重要单词的方式(我发现通过这些文章很有帮助)。谢谢你让我知道。@初学者Java:阅读标签[review-TalkOverflow]上的meta.stackoverflow.com。