wood burning stoves 2.0*
The moose likes JSF and the fly likes Component ID frm1_window viewid has already been found in the view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Component ID frm1_window viewid has already been found in the view " Watch "Component ID frm1_window viewid has already been found in the view " New topic
Author

Component ID frm1_window viewid has already been found in the view

ramamoorthy krishna reddy
Greenhorn

Joined: Jun 09, 2011
Posts: 3
I am getting blank screen and the issue says
"Component ID formCountry:dataTableId:j_idt118 has already been found in the view."

I use weblogic 10.3 app server and java version is 1.6 for my JSF based project.

I use only JSF-API and JSF-IMPL jar files. And I don't use any other open source JSF (myfaces, richfaces, etc) jars.

I use EAR file for project.

My ear file contents like below,

1) lib folder.
lib/jsf-api.jar
lib/jsf-impl.jar
lib/jstl-1.2.jar

2) myproj.jar

3) myproj.war

Please let me know if you need any other info.

ERROR Logs:

java.lang.IllegalStateException: Component ID formCountry:dataTableCntryId:j_idt118 has already been found in the view.
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:820)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:804)
at com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:134)
at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:126)
at javax.faces.application.StateManager.getViewState(StateManager.java:525)
at com.sun.faces.context.PartialViewContextImpl.renderState(PartialViewContextImpl.java:390)
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:285)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:968)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:378)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.gm.crr.filters.AuthorizationFilter.doFilter(AuthorizationFilter.java:192)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.gm.crr.filters.SqlInjectionFilterExt.doFilter(SqlInjectionFilterExt.java:118)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.gm.gpsc.servlet.CSSFilter.doFilter(CSSFilter.java:84)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.gm.crr.filters.RequestParamFilterExt.doFilter(RequestParamFilterExt.java:144)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Thanks,
Ram
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Need to see the code from your view.
ramamoorthy krishna reddy
Greenhorn

Joined: Jun 09, 2011
Posts: 3
Guy deLyonesse wrote:Need to see the code from your view.



<h:dataTable id="searchOutput" columnClasses="#{serviceLevelBean.tableColClass}" bgcolor="#F1F1F1" cellpadding="5" cellspacing="1" first="0"
frame="hsides" rules="all" binding="#{serviceLevelBean.htmlDataTable}"
rowClasses="tableitems1,tableitems" styleClass="table" value="#{serviceLevelBean.serviceLevelList}" var="serviceLevels" border="0" >

I am not able to attach my xhtml file here. Error is thrown for the above code.
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

Are you able to copy/paste the entire code from the file here?
ramamoorthy krishna reddy
Greenhorn

Joined: Jun 09, 2011
Posts: 3
Guy deLyonesse wrote:Are you able to copy/paste the entire code from the file here?


template.xhtml

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view 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" contentType="text/html">


<h:head>

<title>Central Rate Repository</title>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/menu.css" />
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/dropdown.css" />
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/calendar.css" />
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/subModal.css" />


<script src="#{request.contextPath}/scripts/dropdown.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/selectoneradio.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/validator.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/init_menu.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/calendar.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/common.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/subModal.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/decimal_validate.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/common_ac.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/jsf.js" type="text/javascript"></script>
<script src="#{request.contextPath}/scripts/jsf-uncompressed.js" type="text/javascript"></script>
</h:head>

<h:body bgcolor="white">
<div id="banner">
<ui:insert name="banner">
<ui:include src="/pages/banner.xhtml"/>
</ui:insert>
</div>
<div id="header">
<ui:insert name="header">
<ui:include src="/pages/dropmenu1.xhtml"/>
</ui:insert>
</div>
<div id="script">
<ui:insert name="scriptPage">
<ui:include src="/pages/scriptpage.xhtml"/>
</ui:insert>
</div>
<div id="content">
<ui:insert name="content" />
</div>

<div id="footer">
<ui:insert name="footer">
<ui:include src="/pages/footer.xhtml"/>
</ui:insert>
</div>
</h:body>
</f:view>


----------------------------------------------------
my actual JSF page


<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/template/template.xhtml">
<ui:define name="content">
<script>
function help() {
var path = '${request.contextPath}';
var helpFileName = path + "/WebHelp/Index.htm#Maintain_Service_Level.htm";
window.open(helpFileName, "", "resizable, height=650, width=850,scrollbars=yes,top=20,left=20");
return false;
}
</script>
<h:form id="formServiceLevel">
<script>
addEvent(window, 'load', deSelectRadio, false);
</script>
<h:panelGrid width="100%">
<h:panelGrid>
<hutputLabel styleClass="pageTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.TITLE'].get}" />
<hutputLabel styleClass="searchTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.FILTERS'].get}" />
</h:panelGrid>

<h:panelGrid columns="2" border="0" styleClass="filters">

<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.LEVEL'].get}" />
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.DESC'].get}" />
<h:selectOneMenu id="serviceLevelMenu" value="#{serviceLevelBean.serviceLvl}" styleClass="dropdown" style="width:250px">
<f:selectItem id="DefaultSelect" itemLabel="All" itemValue="-1" />
<f:selectItems id="serviceLevelItems" value="#{serviceLevelBean.serviceLevels}"/>
</h:selectOneMenu>
<h:inputText id="serviceLvlDescInputText" value="#{serviceLevelBean.serviceLvlDesc}" style="width:150px"/>
</h:panelGrid>
<h:panelGrid columns="2" border="0" styleClass="filters">
<h:commandButton action="#{serviceLevelBean.searchData}"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.SEARCH'].get}" />
<h:commandButton action="#{serviceLevelBean.exportXL}" value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.EXPORT_XL'].get}" />
</h:panelGrid>

<h:panelGrid id="dataTableForm">
<h:panelGrid columns="1">
<hutputLabel styleClass="searchTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.SEARCH_RESULTS'].get}" />
</h:panelGrid>
<h:panelGrid border="0">
<h:messages infoClass="info" errorClass="error" warnClass="warn" fatalClass="fatal" layout="table" globalOnly="true"/>
<hutputLabel styleClass="pageView"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.PAGE'].get}">  <hutputText
value="#{serviceLevelBean.recordStatus}" escape="false"
id="pageNo" />
</hutputLabel>
<h:dataTable id="searchOutput" columnClasses="#{serviceLevelBean.tableColClass}" bgcolor="#F1F1F1" cellpadding="5" cellspacing="1" first="0"
frame="hsides" rules="all" binding="#{serviceLevelBean.htmlDataTable}"
rowClasses="tableitems1,tableitems" styleClass="table" value="#{serviceLevelBean.serviceLevelList}" var="serviceLevels" border="0" >
<h:column headerClass="colLabel">
<f:facet name="header">
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.SELECT'].get}" />
</f:facet>
<h:selectOneRadio rendered="#{!serviceLevels.editable}" disabled="#{serviceLevelBean.radioDisable}" onclick="radioButton(this);"
valueChangeListener="#{serviceLevelBean.setSelected}">
<f:selectItem itemValue="#{serviceLevels.selected}" />
</h:selectOneRadio>
<h:commandLink disabled="true" rendered="#{serviceLevels.editable}">
<h:graphicImage value="/images/icons/selected.bmp" styleClass="linkBtn"/>
</h:commandLink>
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.LEVEL'].get} *</f:facet>

<hutputText value="#{serviceLevels.srvcLvl}"
rendered="#{!serviceLevels.modeEditable}" />
<h:inputText value="#{serviceLevels.srvcLvl}" onkeypress="return checkValidChar(event);"
rendered="#{serviceLevels.modeEditable}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.DESC'].get} *</f:facet>
<hutputText value="#{serviceLevels.srvcLvlDesc}"
rendered="#{!serviceLevels.editable}" />
<h:inputText value="#{serviceLevels.srvcLvlDesc}" onkeypress="return checkValidChar(event);"
rendered="#{serviceLevels.editable}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CREATED_BY'].get}" />
</f:facet>
<hutputText value="#{serviceLevels.createdBy}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CREATED_DATE'].get}" />
</f:facet>
<hutputText value="#{serviceLevels.createdTs}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.MODIFIED_BY'].get}" />
</f:facet>
<hutputText value="#{serviceLevels.updatedBy}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<hutputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.MODIFIED_DATE'].get}" />
</f:facet>
<hutputText value="#{serviceLevels.updatedTs}" />
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid>
<hutputLabel styleClass="pageTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.TOTAL_RECORDS'].get}">
<hutputLabel value="#{serviceLevelBean.totalRecs}" />
</hutputLabel>
</h:panelGrid>
<h:panelGrid columns="15" border="0" style="vertical-align:bottom" styleClass="filters">
<h:commandLink onclick="document.formServiceLevel.reset()" action="#{serviceLevelBean.rewind}" alt="rewind"
rendered="#{serviceLevelBean.rwdvisible}">
<h:graphicImage value="/images/icons/page_to_beginning_inact.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandLink disabled="true" action="#{serviceLevelBean.rewind}"
alt="rewind" rendered="#{!serviceLevelBean.rwdvisible}">
<h:graphicImage value="/images/icons/page_to_beginning_inact.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandLink onclick="document.formServiceLevel.reset()" action="#{serviceLevelBean.previous}" alt="previous"
rendered="#{serviceLevelBean.pvsvisible}">
<h:graphicImage value="/images/icons/previous_inactive.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandLink disabled="true" action="#{serviceLevelBean.previous}"
alt="previous" rendered="#{!serviceLevelBean.pvsvisible}">
<h:graphicImage value="/images/icons/previous_inactive.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:inputText value="#{serviceLevelBean.pageNo}" size="2"
converter="javax.faces.Integer"></h:inputText>
<h:commandButton value="Jump" action="#{serviceLevelBean.jumpToPage}" disabled="#{serviceLevelBean.jumpDisabled}"
alt="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.JUMP'].get}" />

<h:commandLink onclick="document.formServiceLevel.reset()" action="#{serviceLevelBean.next}" alt="next"
rendered="#{serviceLevelBean.nxtvisible}">
<h:graphicImage value="/images/icons/next_active.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandLink disabled="true" alt="next"
rendered="#{!serviceLevelBean.nxtvisible}">
<h:graphicImage value="/images/icons/next_active.gif"
styleClass="linkBtn" />
</h:commandLink>

<h:commandLink onclick="document.formServiceLevel.reset()" action="#{serviceLevelBean.fastForward}"
alt="fast forward" rendered="#{serviceLevelBean.lastvisible}">
<h:graphicImage value="/images/icons/page_to_end.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandLink disabled="true" alt="fast forward"
rendered="#{!serviceLevelBean.lastvisible}">
<h:graphicImage value="/images/icons/page_to_end.gif"
styleClass="linkBtn" />
</h:commandLink>
<h:commandButton action="#{serviceLevelBean.addRowData}"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.ADD'].get}" disabled="#{!serviceLevelBean.addEnabled}" />
<h:commandButton action="#{serviceLevelBean.editRowData}"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CHANGE'].get}" disabled="#{!serviceLevelBean.editEnabled}" />
<h:commandButton action="#{serviceLevelBean.deleteRowData}" disabled="#{!serviceLevelBean.deleteEnabled}"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.DELETE'].get}"
onclick="return confirmDelete2();" />
<h:commandButton action="#{serviceLevelBean.saveChanges}" disabled="#{!serviceLevelBean.saveEnabled}"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.SAVE'].get}" />
<h:commandButton action="#{serviceLevelBean.cancelData}" value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CANCEL'].get}"
onclick="this.form.reset()" disabled="#{!serviceLevelBean.cancelEnabled}"/>
<h:inputHidden binding="#{serviceLevelBean.addCount}"
converter="javax.faces.Integer" />
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
</html>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Component ID frm1_window viewid has already been found in the view