2 Replies Latest reply on Nov 27, 2008 5:31 AM by Ilya Shaikovsky

    duplicate Id for a component

    Rajeev Ravindran Newbie

      I have a search page with text fields, drop downs etc etc and search result page which has got <rich:dataTable to display search result. If i hit the back button on search result page and do the search again, i always get duplicate Id component. After spending lot of time i fingured out that issue is with having dataList inside datatable. This is what my code looks like

      <rich:dataTable id="searchResultList" rows="50"
       var="job" sortMode="single"
       binding="#{searchPageHandler.dataTable}" >
      <rich:column sortBy="#{job.analyst}" sortable="true" id="idx28">
       <f:facet name="header" >
       <h:outputText value="Analyst"/>
       <t:dataList var="analystId" value="#{job.analystList}" id="dl1">
       <h:outputLink value="http://photoph.com/servlet/PhotoPh?query=#{analystId}" target="_blank" id="a1">
       <h:outputText value="#{analystId}" id="b2"/>
       <h:outputText value=" " id="c3"/>

      if I remove t:dataList from the result page, I wont be getting duplicate Id error. I tried removing all the id's assigned to the components, also I tried rich:dataList instead of t:dataList but its all in vain. I'm using Richfaces 3.2.1.GA .

      Any help to resolve this issue is appreciated.