7 Replies Latest reply on Aug 21, 2008 4:34 PM by shadowcreeper

    rerender causes duplicate component id error

    grimholtz

      Hi,

      I have a collection of collections rendered like this:

      <c:forEach items="#{user.tabs}" var="tab">
       <c:forEach items="#{tab.column0}" var="panel">
       <ui:include src="panelchrome.xhtml">
       <ui:param name="id" value="#{panel.id}"/>
       </ui:include>
       </c:forEach>
      
       <c:forEach items="#{tab.column1}" var="panel">
       <ui:include src="panelchrome.xhtml">
       <ui:param name="id" value="#{panel.id}"/>
       </ui:include>
       </c:forEach>
      </c:forEach>


      panelchrome.xhtml contains:

      <h:form id="form#{id}">
       ...
       <a4j:commandButton reRender="form#{id}" image="edit.gif"/>
      </h:form>


      Sometimes, a duplicate component id error occurs when clicking the <a4j:commandButton/>.

      What am I doing wrong? Please, please help...

      grimholtz