JSF:javax.faces.FacesException:无法添加相同的组件两次:vaz4n2-retrieve-update [英] JSF: javax.faces.FacesException: Cannot add the same component twice: vaz4n2-retrieve-update

查看:152
本文介绍了JSF:javax.faces.FacesException:无法添加相同的组件两次:vaz4n2-retrieve-update的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名JSF初学者。我试图在Eclipse 4.2(Juno)中实现ICEfaces 3.0组件。我已经实施&使用Apache Tomcat 7.0运行它。它在窗口中显示以下错误:


无法添加相同的组件两次


在控制台栏中显示为:

  javax.faces.FacesException:无法添加相同组件两次:v8z4ho2-retrieve-update 

我的JSF代码

 <?xml version ='1.0'encoding ='UTF-8'?> 
<!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://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>图表< / title>
< link rel =stylesheettype =text / csshref =./ xmlhttp / css / rime / rime.css/>
< / h:head>

< h:body styleClass =ice-skin-rime>
< h:form id =canvasForm>
< ace:chart id =chartanimated =falsevalue =#{chartBean.barData}
stackSeries =falsedefaultAxesConfig =#{chartBean.barDemoDefaultAxis}
xAxis =#{chartBean.barDemoXAxis}yAxis =#{chartBean.barDemoYAxis}
legend =truelegendPlacement =OUTSIDE_GRIDhighlighter =true
highlighterLocation =N highlighterShowMarker =false
highlighterBringSeriesToFront =true
widgetVar =barChart/>
< / h:form>
< / h:body>
< / html>

如何纠正此错误?帮助我。

解决方案

在ICEFaces论坛中,我发现很多人都有这个问题。如果使用Tomcat 7.0.42,请尝试使用Tomcat 7.0.41,看看它是否可行。还要检查是否在同一个类路径中复制了icefaces jar(或icefaces.jar和icefaces-ee.jar)。该帖子的链接是:



http://www.icesoft.org/JForum/posts/list/22121.page#sthash.qxEkXX1Q.dpbs


I am a JSF beginner. I try to implement ICEfaces 3.0 component in Eclipse 4.2 (Juno). I had implemented & run it using Apache Tomcat 7.0. It showing the following error in window:

Cannot add the same component twice

In console bar it shows as :

javax.faces.FacesException: Cannot add the same component twice: v8z4ho2-retrieve-update

My JSF Code

<?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>

How to rectify this error? Help me out.

解决方案

In ICEFaces forum I've found many people with this problem. If you are using Tomcat 7.0.42, try Tomcat 7.0.41 instead and see if it works. Also check if you have icefaces jar duplicated (or icefaces.jar and icefaces-ee.jar) in the same classpath. The link to the post is:

http://www.icesoft.org/JForum/posts/list/22121.page#sthash.qxEkXX1Q.dpbs

这篇关于JSF:javax.faces.FacesException:无法添加相同的组件两次:vaz4n2-retrieve-update的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆