• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Component ID frm1_window viewid has already been found in the view

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need to see the code from your view.
 
ramamoorthy krishna reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you able to copy/paste the entire code from the file here?
 
ramamoorthy krishna reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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>
<h:outputLabel styleClass="pageTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.TITLE'].get}" />
<h:outputLabel styleClass="searchTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.FILTERS'].get}" />
</h:panelGrid>

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

<h:outputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.LEVEL'].get}" />
<h:outputText 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">
<h:outputLabel 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"/>
<h:outputLabel styleClass="pageView"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.SERVICE_LEVEL.PAGE'].get}">  <h:outputText
value="#{serviceLevelBean.recordStatus}" escape="false"
id="pageNo" />
</h:outputLabel>
<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">
<h:outputText 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>

<h:outputText 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>
<h:outputText 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">
<h:outputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CREATED_BY'].get}" />
</f:facet>
<h:outputText value="#{serviceLevels.createdBy}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<h:outputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.CREATED_DATE'].get}" />
</f:facet>
<h:outputText value="#{serviceLevels.createdTs}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<h:outputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.MODIFIED_BY'].get}" />
</f:facet>
<h:outputText value="#{serviceLevels.updatedBy}" />
</h:column>
<h:column headerClass="colLabel">
<f:facet name="header">
<h:outputText value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.MODIFIED_DATE'].get}" />
</f:facet>
<h:outputText value="#{serviceLevels.updatedTs}" />
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid>
<h:outputLabel styleClass="pageTitleStyle"
value="#{serviceLevelBean.messageResourceBean.init.set['CRR.CRR.CRR.MASTER.COMMON.TOTAL_RECORDS'].get}">
<h:outputLabel value="#{serviceLevelBean.totalRecs}" />
</h:outputLabel>
</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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic